|
INET Framework for OMNeT++/OMNEST
|
#include <BitCountChunkSerializer.h>
Public Member Functions | |
| virtual void | serialize (MemoryOutputStream &stream, const Ptr< const Chunk > &chunk, b offset, b length) const override |
| Serializes a chunk into a stream by writing the bytes representing the chunk at the end of the stream. More... | |
| virtual const Ptr< Chunk > | deserialize (MemoryInputStream &stream, const std::type_info &typeInfo) const override |
| Deserializes a chunk from a stream by reading the bytes at the current position of the stream. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from inet::ChunkSerializer | |
| static b | totalSerializedLength = b(0) |
| static b | totalDeserializedLength = b(0) |
|
overridevirtual |
Deserializes a chunk from a stream by reading the bytes at the current position of the stream.
The returned chunk will be an instance of the provided type. The current stream position is updated according to the length of the returned chunk.
Implements inet::ChunkSerializer.
|
overridevirtual |
Serializes a chunk into a stream by writing the bytes representing the chunk at the end of the stream.
The offset and length parameters allow to write only a part of the data.
Implements inet::ChunkSerializer.