after 2 weeks of porting over the ngc_ft1 code to solanaceae and rewriting the highlevel logic
(29 commits predate this)
This commit is contained in:
16
solanaceae/ngc_ft1/snd_buf.cpp
Normal file
16
solanaceae/ngc_ft1/snd_buf.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "./snd_buf.hpp"
|
||||
|
||||
void SendSequenceBuffer::erase(uint16_t seq) {
|
||||
entries.erase(seq);
|
||||
}
|
||||
|
||||
// inflight chunks
|
||||
size_t SendSequenceBuffer::size(void) const {
|
||||
return entries.size();
|
||||
}
|
||||
|
||||
uint16_t SendSequenceBuffer::add(std::vector<uint8_t>&& data) {
|
||||
entries[next_seq_id] = {data, 0.f};
|
||||
return next_seq_id++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user