The value field of a tlv can take different values (uint8_t, uint16, vector, ...). More...
#include "wimax-tlv.h"
Public Member Functions | |
virtual | ~TlvValue () |
virtual TlvValue * | Copy () const =0 |
Copy function. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start, uint64_t valueLen)=0 |
Deserialize from a buffer. More... | |
virtual uint32_t | GetSerializedSize () const =0 |
Get serialized size in bytes. More... | |
virtual void | Serialize (Buffer::Iterator start) const =0 |
Serialize to a buffer. More... | |
The value field of a tlv can take different values (uint8_t, uint16, vector, ...).
This class is a virtual interface from which all the types of tlv values should derive
Definition at line 44 of file wimax-tlv.h.
|
inlinevirtual |
Definition at line 47 of file wimax-tlv.h.
|
pure virtual |
Copy function.
Implemented in ns3::VectorTlvValue, ns3::Ipv4AddressTlvValue, ns3::ProtocolTlvValue, ns3::PortRangeTlvValue, ns3::TosTlvValue, ns3::ClassificationRuleVectorTlvValue, ns3::CsParamVectorTlvValue, ns3::SfVectorTlvValue, ns3::U32TlvValue, ns3::U16TlvValue, and ns3::U8TlvValue.
Referenced by ns3::Tlv::CopyValue().
|
pure virtual |
Deserialize from a buffer.
start | the iterator |
valueLen | the maximum length of the value |
Implemented in ns3::VectorTlvValue, ns3::Ipv4AddressTlvValue, ns3::ProtocolTlvValue, ns3::PortRangeTlvValue, ns3::TosTlvValue, ns3::ClassificationRuleVectorTlvValue, ns3::CsParamVectorTlvValue, ns3::SfVectorTlvValue, ns3::U32TlvValue, ns3::U16TlvValue, and ns3::U8TlvValue.
|
pure virtual |
Get serialized size in bytes.
Implemented in ns3::Ipv4AddressTlvValue, ns3::ProtocolTlvValue, ns3::PortRangeTlvValue, ns3::TosTlvValue, ns3::VectorTlvValue, ns3::U32TlvValue, ns3::U16TlvValue, and ns3::U8TlvValue.
Referenced by ns3::Tlv::GetSerializedSize().
|
pure virtual |
Serialize to a buffer.
start | the iterator |
Implemented in ns3::Ipv4AddressTlvValue, ns3::ProtocolTlvValue, ns3::PortRangeTlvValue, ns3::TosTlvValue, ns3::VectorTlvValue, ns3::U32TlvValue, ns3::U16TlvValue, and ns3::U8TlvValue.
Referenced by ns3::Tlv::Serialize().