#include <Ieee802EpdHeaderSerializer.h>
◆ Ieee802EpdHeaderSerializer()
| inet::Ieee802EpdHeaderSerializer::Ieee802EpdHeaderSerializer |
( |
| ) |
|
|
inline |
21 : FieldsChunkSerializer() {}
◆ deserialize()
Deserializes a chunk from a stream by reading the bytes at the current position of the stream.
The current stream position is updated according to the length of the returned chunk.
Implements inet::FieldsChunkSerializer.
24 Ptr<Ieee802EpdHeader> llcHeader = makeShared<Ieee802EpdHeader>();
25 llcHeader->setEtherType(stream.readUint16Be());
◆ serialize()
| void inet::Ieee802EpdHeaderSerializer::serialize |
( |
MemoryOutputStream & |
stream, |
|
|
const Ptr< const Chunk > & |
chunk |
|
) |
| const |
|
overrideprotectedvirtual |
Serializes a chunk into a stream by writing all bytes representing the chunk at the end of the stream.
Implements inet::FieldsChunkSerializer.
18 const auto& llcHeader =
CHK(dynamicPtrCast<const Ieee802EpdHeader>(chunk));
19 stream.writeUint16Be(llcHeader->getEtherType());
The documentation for this class was generated from the following files: