Converts between Ieee80211IrPhyHeader and binary network byte order IEEE 802.11 IR PHY header.
More...
#include <Ieee80211PhyHeaderSerializer.h>
Converts between Ieee80211IrPhyHeader and binary network byte order IEEE 802.11 IR PHY header.
◆ Ieee80211IrPhyHeaderSerializer()
| inet::physicallayer::Ieee80211IrPhyHeaderSerializer::Ieee80211IrPhyHeaderSerializer |
( |
| ) |
|
|
inline |
40 : FieldsChunkSerializer() {}
◆ deserialize()
| const Ptr< Chunk > inet::physicallayer::Ieee80211IrPhyHeaderSerializer::deserialize |
( |
MemoryInputStream & |
stream | ) |
const |
|
overrideprotectedvirtual |
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.
58 auto irPhyHeader = makeShared<Ieee80211IrPhyHeader>();
59 irPhyHeader->setCrc(stream.readUint16Be());
◆ serialize()
| void inet::physicallayer::Ieee80211IrPhyHeaderSerializer::serialize |
( |
MemoryOutputStream & |
stream, |
|
|
const Ptr< const Chunk > & |
chunk |
|
) |
| const |
|
overrideprotectedvirtual |
IR.
Implements inet::FieldsChunkSerializer.
52 auto irPhyHeader = dynamicPtrCast<const Ieee80211IrPhyHeader>(chunk);
53 stream.writeUint16Be(irPhyHeader->getCrc());
The documentation for this class was generated from the following files: