A Discrete-Event Network Simulator
API
ns3::U8TlvValue Class Reference

U8TlvValue class. More...

#include "wimax-tlv.h"

+ Inheritance diagram for ns3::U8TlvValue:
+ Collaboration diagram for ns3::U8TlvValue:

Public Member Functions

 U8TlvValue ()
 
 U8TlvValue (uint8_t value)
 Constructor. More...
 
 ~U8TlvValue () override
 
U8TlvValueCopy () const override
 Copy. More...
 
uint32_t Deserialize (Buffer::Iterator start)
 Deserialize from a buffer. More...
 
uint32_t Deserialize (Buffer::Iterator start, uint64_t valueLen) override
 Deserialize from a buffer. More...
 
uint32_t GetSerializedSize () const override
 Get serialized size in bytes. More...
 
uint8_t GetValue () const
 Get value. More...
 
void Serialize (Buffer::Iterator start) const override
 Serialize to a buffer. More...
 
- Public Member Functions inherited from ns3::TlvValue
virtual ~TlvValue ()
 

Private Attributes

uint8_t m_value
 value More...
 

Detailed Description

U8TlvValue class.

Definition at line 174 of file wimax-tlv.h.

Constructor & Destructor Documentation

◆ U8TlvValue() [1/2]

ns3::U8TlvValue::U8TlvValue ( uint8_t  value)

Constructor.

Parameters
valuevalue to encode

Definition at line 480 of file wimax-tlv.cc.

References m_value.

◆ U8TlvValue() [2/2]

ns3::U8TlvValue::U8TlvValue ( )

Definition at line 485 of file wimax-tlv.cc.

References m_value.

Referenced by Copy().

+ Here is the caller graph for this function:

◆ ~U8TlvValue()

ns3::U8TlvValue::~U8TlvValue ( )
override

Definition at line 490 of file wimax-tlv.cc.

Member Function Documentation

◆ Copy()

U8TlvValue * ns3::U8TlvValue::Copy ( void  ) const
overridevirtual

Copy.

Returns
a U8 TLV value

Implements ns3::TlvValue.

Definition at line 526 of file wimax-tlv.cc.

References U8TlvValue(), and m_value.

+ Here is the call graph for this function:

◆ Deserialize() [1/2]

uint32_t ns3::U8TlvValue::Deserialize ( Buffer::Iterator  start)

Deserialize from a buffer.

Parameters
startthe iterator
Returns
the size of the item

Definition at line 513 of file wimax-tlv.cc.

References m_value, and ns3::Buffer::Iterator::ReadU8().

+ Here is the call graph for this function:

◆ Deserialize() [2/2]

uint32_t ns3::U8TlvValue::Deserialize ( Buffer::Iterator  start,
uint64_t  valueLen 
)
overridevirtual

Deserialize from a buffer.

Parameters
startthe iterator
valueLenthe maximum length of the value
Returns
the

Implements ns3::TlvValue.

Definition at line 507 of file wimax-tlv.cc.

Referenced by ns3::SfVectorTlvValue::Deserialize(), ns3::CsParamVectorTlvValue::Deserialize(), and ns3::ClassificationRuleVectorTlvValue::Deserialize().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::U8TlvValue::GetSerializedSize ( ) const
overridevirtual

Get serialized size in bytes.

Returns
the serialized size

Implements ns3::TlvValue.

Definition at line 495 of file wimax-tlv.cc.

◆ GetValue()

uint8_t ns3::U8TlvValue::GetValue ( ) const

Get value.

Returns
the value

Definition at line 520 of file wimax-tlv.cc.

References m_value.

◆ Serialize()

void ns3::U8TlvValue::Serialize ( Buffer::Iterator  start) const
overridevirtual

Serialize to a buffer.

Parameters
startthe iterator

Implements ns3::TlvValue.

Definition at line 501 of file wimax-tlv.cc.

References m_value, and ns3::Buffer::Iterator::WriteU8().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_value

uint8_t ns3::U8TlvValue::m_value
private

value

Definition at line 206 of file wimax-tlv.h.

Referenced by U8TlvValue(), Copy(), Deserialize(), GetValue(), and Serialize().


The documentation for this class was generated from the following files: