|
Sponge
CS144's user-space TCP library
|
Go to the documentation of this file. 1 #ifndef SPONGE_LIBSPONGE_STREAM_REASSEMBLER_HH
2 #define SPONGE_LIBSPONGE_STREAM_REASSEMBLER_HH
51 #endif // SPONGE_LIBSPONGE_STREAM_REASSEMBLER_HH
ByteStream _output
The reassembled in-order byte stream.
ByteStream & stream_out()
StreamReassembler(const size_t capacity)
Construct a StreamReassembler that will store up to capacity bytes.
size_t _capacity
The maximum number of bytes.
const ByteStream & stream_out() const
A class that assembles a series of excerpts from a byte stream (possibly out of order,...
size_t unassembled_bytes() const
void push_substring(const std::string &data, const uint64_t index, const bool eof)
Receive a substring and write any newly contiguous bytes into the stream.
bool empty() const
Is the internal state empty (other than the output stream)?