A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::Asn1Header Class Referenceabstract

This class has the purpose to encode Information Elements according to ASN.1 syntax, as defined in ITU-T X-691. More...

#include "lte-asn1-header.h"

+ Inheritance diagram for ns3::Asn1Header:
+ Collaboration diagram for ns3::Asn1Header:

Public Member Functions

 Asn1Header ()
 
 ~Asn1Header () override
 
uint32_t Deserialize (Buffer::Iterator bIterator) override=0
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object.
 
uint32_t GetSerializedSize () const override
 
virtual void PreSerialize () const =0
 This function serializes class attributes to m_serializationResult local Buffer.
 
void Print (std::ostream &os) const override=0
 
void Serialize (Buffer::Iterator bIterator) const override
 
- Public Member Functions inherited from ns3::Header
 ~Header () override
 
uint32_t Deserialize (Buffer::Iterator start) override=0
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 Deserialize the object from a buffer iterator.
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator.
 
virtual uint32_t GetSerializedSize () const =0
 
void Print (std::ostream &os) const override=0
 
virtual void Serialize (Buffer::Iterator start) const =0
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 Deserialize the object from a buffer iterator.
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator.
 
virtual void Print (std::ostream &os) const =0
 Print the object contents.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
virtual TypeId GetInstanceTypeId () const =0
 Get the most derived TypeId for this Object.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Protected Member Functions

Buffer::Iterator DeserializeBitset (std::bitset< 8 > *data, Buffer::Iterator bIterator)
 Deserialize a bitset.
 
template<int N>
Buffer::Iterator DeserializeBitset (std::bitset< N > *data, Buffer::Iterator bIterator)
 Deserialize a bitset.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 1 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 10 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 16 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 2 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 27 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 28 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 32 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBitstring (std::bitset< 8 > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
template<int N>
Buffer::Iterator DeserializeBitstring (std::bitset< N > *bitstring, Buffer::Iterator bIterator)
 Deserialize a bitstring.
 
Buffer::Iterator DeserializeBoolean (bool *value, Buffer::Iterator bIterator)
 Deserialize a boolean.
 
Buffer::Iterator DeserializeChoice (int numOptions, bool isExtensionMarkerPresent, int *selectedOption, Buffer::Iterator bIterator)
 Deserialize a Choice (set of options)
 
Buffer::Iterator DeserializeEnum (int numElems, int *selectedElem, Buffer::Iterator bIterator)
 Deserialize an Enum.
 
Buffer::Iterator DeserializeInteger (int *n, int nmin, int nmax, Buffer::Iterator bIterator)
 Deserialize an integer.
 
Buffer::Iterator DeserializeNull (Buffer::Iterator bIterator)
 Deserialize nothing (null op)
 
Buffer::Iterator DeserializeSequence (std::bitset< 0 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 1 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 10 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 11 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 2 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 3 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 4 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 5 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 6 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 7 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequence (std::bitset< 9 > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
template<int N>
Buffer::Iterator DeserializeSequence (std::bitset< N > *optionalOrDefaultMask, bool isExtensionMarkerPresent, Buffer::Iterator bIterator)
 Deserialize a sequence.
 
Buffer::Iterator DeserializeSequenceOf (int *numElems, int nMax, int nMin, Buffer::Iterator bIterator)
 Deserialize a Sequence.
 
void FinalizeSerialization () const
 Finalizes an in progress serialization.
 
template<int N>
void SerializeBitset (std::bitset< N > data) const
 Serialize a bitset.
 
void SerializeBitstring (std::bitset< 1 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 10 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 16 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 2 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 27 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 28 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 32 > bitstring) const
 Serialize a bitstring.
 
void SerializeBitstring (std::bitset< 8 > bitstring) const
 Serialize a bitstring.
 
template<int N>
void SerializeBitstring (std::bitset< N > bitstring) const
 Serialize a bitstring.
 
void SerializeBoolean (bool value) const
 Serialize a bool.
 
void SerializeChoice (int numOptions, int selectedOption, bool isExtensionMarkerPresent) const
 Serialize a Choice (set of options)
 
void SerializeEnum (int numElems, int selectedElem) const
 Serialize an Enum.
 
void SerializeInteger (int n, int nmin, int nmax) const
 Serialize an Integer.
 
void SerializeNull () const
 Serialize nothing (null op)
 
void SerializeSequence (std::bitset< 0 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 1 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 10 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 11 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 2 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 3 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 4 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 5 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 6 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 7 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequence (std::bitset< 9 > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
template<int N>
void SerializeSequence (std::bitset< N > optionalOrDefaultMask, bool isExtensionMarkerPresent) const
 Serialize a sequence.
 
void SerializeSequenceOf (int numElems, int nMax, int nMin) const
 Serialize a Sequence.
 
void WriteOctet (uint8_t octet) const
 Function to write in m_serializationResult, after resizing its size.
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Protected Attributes

bool m_isDataSerialized
 true if data is serialized
 
uint8_t m_numSerializationPendingBits
 number of pending bits
 
uint8_t m_serializationPendingBits
 pending bits
 
Buffer m_serializationResult
 serialization result
 

Additional Inherited Members

Detailed Description

This class has the purpose to encode Information Elements according to ASN.1 syntax, as defined in ITU-T X-691.

Introspection did not find any typical Config paths.

IMPORTANT: The encoding is done following the UNALIGNED variant.


No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 48 bytes (on a 64-bit architecture).

Definition at line 36 of file lte-asn1-header.h.

Constructor & Destructor Documentation

◆ Asn1Header()

ns3::Asn1Header::Asn1Header ( )

◆ ~Asn1Header()

ns3::Asn1Header::~Asn1Header ( )
override

Definition at line 55 of file lte-asn1-header.cc.

Member Function Documentation

◆ Deserialize()

uint32_t ns3::Asn1Header::Deserialize ( Buffer::Iterator  start)
overridepure virtual
Parameters
startan iterator which points to where the header should read from.
Returns
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.

Implements ns3::Header.

Implemented in ns3::RrcUlDcchMessage, ns3::RrcDlDcchMessage, ns3::RrcUlCcchMessage, ns3::RrcDlCcchMessage, ns3::RrcConnectionRequestHeader, ns3::RrcConnectionSetupHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::RrcConnectionReconfigurationHeader, ns3::HandoverPreparationInfoHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::RrcConnectionReestablishmentHeader, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::RrcConnectionReleaseHeader, ns3::RrcConnectionRejectHeader, ns3::MeasurementReportHeader, and ns3::RrcAsn1Header.

◆ DeserializeBitset() [1/2]

Buffer::Iterator ns3::Asn1Header::DeserializeBitset ( std::bitset< 8 > *  data,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitset.

Parameters
databuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

◆ DeserializeBitset() [2/2]

template<int N>
Buffer::Iterator ns3::Asn1Header::DeserializeBitset ( std::bitset< N > *  data,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitset.

Parameters
databuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 473 of file lte-asn1-header.cc.

References data, m_numSerializationPendingBits, m_serializationPendingBits, and ns3::Buffer::Iterator::ReadU8().

+ Here is the call graph for this function:

◆ DeserializeBitstring() [1/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 1 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 532 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [2/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 10 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 550 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [3/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 16 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 556 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [4/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 2 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 538 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [5/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 27 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 562 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [6/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 28 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 568 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [7/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 32 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 574 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [8/9]

Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< 8 > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

Deserialize a bitstring.

Parameters
bitstringbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 544 of file lte-asn1-header.cc.

References data.

◆ DeserializeBitstring() [9/9]

template<int N>
Buffer::Iterator ns3::Asn1Header::DeserializeBitstring ( std::bitset< N > *  bitstring,
Buffer::Iterator  bIterator 
)
protected

◆ DeserializeBoolean()

Buffer::Iterator ns3::Asn1Header::DeserializeBoolean ( bool *  value,
Buffer::Iterator  bIterator 
)
protected

◆ DeserializeChoice()

Buffer::Iterator ns3::Asn1Header::DeserializeChoice ( int  numOptions,
bool  isExtensionMarkerPresent,
int *  selectedOption,
Buffer::Iterator  bIterator 
)
protected

Deserialize a Choice (set of options)

Parameters
numOptionsnumber of options
isExtensionMarkerPresenttrue if extension mark is present
selectedOptionbuffer to store the result
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 723 of file lte-asn1-header.cc.

References DeserializeBoolean(), and DeserializeInteger().

Referenced by ns3::RrcConnectionRequestHeader::Deserialize(), ns3::RrcConnectionSetupHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReestablishmentRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::MeasurementReportHeader::Deserialize(), ns3::RrcDlCcchMessage::DeserializeDlCcchMessage(), ns3::RrcDlDcchMessage::DeserializeDlDcchMessage(), ns3::RrcAsn1Header::DeserializeDrbToAddModList(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializeMeasResults(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicated(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::DeserializeSrbToAddModList(), ns3::RrcAsn1Header::DeserializeThresholdEutra(), ns3::RrcUlCcchMessage::DeserializeUlCcchMessage(), and ns3::RrcUlDcchMessage::DeserializeUlDcchMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeserializeEnum()

◆ DeserializeInteger()

Buffer::Iterator ns3::Asn1Header::DeserializeInteger ( int *  n,
int  nmin,
int  nmax,
Buffer::Iterator  bIterator 
)
protected

Deserialize an integer.

Parameters
nbuffer to store the result
nminmin value to serialize
nmaxmax value to serialize
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 589 of file lte-asn1-header.cc.

Referenced by ns3::RrcConnectionSetupHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::RrcAsn1Header::DeserializeCellIdentification(), DeserializeChoice(), ns3::RrcAsn1Header::DeserializeDrbToAddModList(), DeserializeEnum(), ns3::RrcAsn1Header::DeserializeLogicalChannelConfig(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializeMeasResults(), ns3::RrcAsn1Header::DeserializeNonCriticalExtensionConfig(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicated(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializePlmnIdentity(), ns3::RrcAsn1Header::DeserializeRachConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSCell(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigDedicated(), DeserializeSequenceOf(), ns3::RrcAsn1Header::DeserializeSrbToAddModList(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType2(), and ns3::RrcAsn1Header::DeserializeThresholdEutra().

+ Here is the caller graph for this function:

◆ DeserializeNull()

◆ DeserializeSequence() [1/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 0 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 758 of file lte-asn1-header.cc.

◆ DeserializeSequence() [2/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 1 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 766 of file lte-asn1-header.cc.

◆ DeserializeSequence() [3/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 10 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 830 of file lte-asn1-header.cc.

◆ DeserializeSequence() [4/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 11 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 838 of file lte-asn1-header.cc.

◆ DeserializeSequence() [5/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 2 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 774 of file lte-asn1-header.cc.

◆ DeserializeSequence() [6/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 3 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 782 of file lte-asn1-header.cc.

◆ DeserializeSequence() [7/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 4 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 790 of file lte-asn1-header.cc.

◆ DeserializeSequence() [8/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 5 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 798 of file lte-asn1-header.cc.

◆ DeserializeSequence() [9/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 6 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 806 of file lte-asn1-header.cc.

◆ DeserializeSequence() [10/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 7 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 814 of file lte-asn1-header.cc.

◆ DeserializeSequence() [11/12]

Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< 9 > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 822 of file lte-asn1-header.cc.

◆ DeserializeSequence() [12/12]

template<int N>
Buffer::Iterator ns3::Asn1Header::DeserializeSequence ( std::bitset< N > *  optionalOrDefaultMask,
bool  isExtensionMarkerPresent,
Buffer::Iterator  bIterator 
)
protected

Deserialize a sequence.

Parameters
optionalOrDefaultMaskbuffer to store the result
isExtensionMarkerPresenttrue if Extension Marker is present
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 744 of file lte-asn1-header.cc.

References DeserializeBoolean().

Referenced by ns3::RrcConnectionRequestHeader::Deserialize(), ns3::RrcConnectionSetupHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReestablishmentRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::MeasurementReportHeader::Deserialize(), ns3::RrcAsn1Header::DeserializeCellIdentification(), ns3::RrcDlCcchMessage::DeserializeDlCcchMessage(), ns3::RrcDlDcchMessage::DeserializeDlDcchMessage(), ns3::RrcAsn1Header::DeserializeDrbToAddModList(), ns3::RrcAsn1Header::DeserializeLogicalChannelConfig(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializeMeasResults(), ns3::RrcAsn1Header::DeserializeNonCriticalExtensionConfig(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicated(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializePlmnIdentity(), ns3::RrcAsn1Header::DeserializeRachConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSCell(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigDedicated(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializeSrbToAddModList(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType2(), ns3::RrcUlCcchMessage::DeserializeUlCcchMessage(), and ns3::RrcUlDcchMessage::DeserializeUlDcchMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeserializeSequenceOf()

Buffer::Iterator ns3::Asn1Header::DeserializeSequenceOf ( int *  numElems,
int  nMax,
int  nMin,
Buffer::Iterator  bIterator 
)
protected

Deserialize a Sequence.

Parameters
numElemsbuffer to store the result
nMaxmax value to serialize
nMinmin value to serialize
bIteratorbuffer iterator
Returns
the modified buffer iterator

Definition at line 852 of file lte-asn1-header.cc.

References DeserializeInteger().

Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcAsn1Header::DeserializeDrbToAddModList(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializeMeasResults(), ns3::RrcAsn1Header::DeserializeNonCriticalExtensionConfig(), ns3::RrcAsn1Header::DeserializePlmnIdentity(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigDedicated(), ns3::RrcAsn1Header::DeserializeSrbToAddModList(), and ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FinalizeSerialization()

◆ GetInstanceTypeId()

TypeId ns3::Asn1Header::GetInstanceTypeId ( ) const
overridevirtual

Get the most derived TypeId for this Object.

This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Returns
The TypeId associated to the most-derived type of this instance.

Implements ns3::ObjectBase.

Reimplemented in ns3::RrcAsn1Header.

Definition at line 43 of file lte-asn1-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

◆ GetTypeId()

TypeId ns3::Asn1Header::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 36 of file lte-asn1-header.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PreSerialize()

virtual void ns3::Asn1Header::PreSerialize ( ) const
pure virtual

This function serializes class attributes to m_serializationResult local Buffer.

As ASN1 encoding produces a bitstream that does not have a fixed length, this function is needed to store the result, so its length can be retrieved with Header::GetSerializedSize() function. This method is pure virtual in this class (needs to be implemented in child classes) as the meaningful information elements are in the subclasses.

Implemented in ns3::RrcUlDcchMessage, ns3::RrcDlDcchMessage, ns3::RrcUlCcchMessage, ns3::RrcDlCcchMessage, ns3::RrcConnectionRequestHeader, ns3::RrcConnectionSetupHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::RrcConnectionReconfigurationHeader, ns3::HandoverPreparationInfoHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::RrcConnectionReestablishmentHeader, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::RrcConnectionReleaseHeader, ns3::RrcConnectionRejectHeader, ns3::MeasurementReportHeader, and ns3::RrcAsn1Header.

Referenced by GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

◆ Print()

void ns3::Asn1Header::Print ( std::ostream &  os) const
overridepure virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a header as ascii data to a c++ output stream. Although the header is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Implements ns3::Header.

Implemented in ns3::RrcAsn1Header, ns3::RrcUlDcchMessage, ns3::RrcDlDcchMessage, ns3::RrcUlCcchMessage, ns3::RrcDlCcchMessage, ns3::RrcConnectionRequestHeader, ns3::RrcConnectionSetupHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::RrcConnectionReconfigurationHeader, ns3::HandoverPreparationInfoHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::RrcConnectionReestablishmentHeader, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::RrcConnectionReleaseHeader, ns3::RrcConnectionRejectHeader, and ns3::MeasurementReportHeader.

◆ Serialize()

void ns3::Asn1Header::Serialize ( Buffer::Iterator  start) const
overridevirtual
Parameters
startan iterator which points to where the header should be written.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.

Implements ns3::Header.

Definition at line 70 of file lte-asn1-header.cc.

References ns3::Buffer::Begin(), ns3::Buffer::End(), m_isDataSerialized, m_serializationResult, PreSerialize(), and ns3::Buffer::Iterator::Write().

+ Here is the call graph for this function:

◆ SerializeBitset()

template<int N>
void ns3::Asn1Header::SerializeBitset ( std::bitset< N >  data) const
protected

Serialize a bitset.

Parameters
datadata to serialize

Definition at line 90 of file lte-asn1-header.cc.

References data, m_numSerializationPendingBits, m_serializationPendingBits, and WriteOctet().

+ Here is the call graph for this function:

◆ SerializeBitstring() [1/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 1 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 180 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [2/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 10 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 198 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [3/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 16 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 204 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [4/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 2 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 186 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [5/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 27 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 210 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [6/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 28 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 216 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [7/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 32 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 222 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [8/9]

void ns3::Asn1Header::SerializeBitstring ( std::bitset< 8 >  bitstring) const
protected

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

Definition at line 192 of file lte-asn1-header.cc.

References data.

◆ SerializeBitstring() [9/9]

template<int N>
void ns3::Asn1Header::SerializeBitstring ( std::bitset< N >  bitstring) const
protected

◆ SerializeBoolean()

◆ SerializeChoice()

void ns3::Asn1Header::SerializeChoice ( int  numOptions,
int  selectedOption,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a Choice (set of options)

Parameters
numOptionsnumber of options
selectedOptionselected option
isExtensionMarkerPresenttrue if extension mark is present

Definition at line 341 of file lte-asn1-header.cc.

References SerializeBoolean(), and SerializeInteger().

Referenced by ns3::RrcConnectionRequestHeader::PreSerialize(), ns3::RrcConnectionSetupHeader::PreSerialize(), ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionReestablishmentHeader::PreSerialize(), ns3::RrcConnectionReestablishmentCompleteHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRejectHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionRejectHeader::PreSerialize(), ns3::MeasurementReportHeader::PreSerialize(), ns3::RrcDlCcchMessage::SerializeDlCcchMessage(), ns3::RrcDlDcchMessage::SerializeDlDcchMessage(), ns3::RrcAsn1Header::SerializeDrbToAddModList(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializeMeasResults(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicated(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::SerializeSrbToAddModList(), ns3::RrcAsn1Header::SerializeThresholdEutra(), ns3::RrcUlCcchMessage::SerializeUlCcchMessage(), and ns3::RrcUlDcchMessage::SerializeUlDcchMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SerializeEnum()

◆ SerializeInteger()

void ns3::Asn1Header::SerializeInteger ( int  n,
int  nmin,
int  nmax 
) const
protected

Serialize an Integer.

Parameters
nvalue to serialize
nminmin value to serialize
nmaxmax value to serialize

Definition at line 359 of file lte-asn1-header.cc.

References NS_ASSERT_MSG.

Referenced by ns3::RrcConnectionSetupHeader::PreSerialize(), ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionReestablishmentHeader::PreSerialize(), ns3::RrcConnectionReestablishmentCompleteHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionRejectHeader::PreSerialize(), SerializeChoice(), ns3::RrcAsn1Header::SerializeDrbToAddModList(), SerializeEnum(), ns3::RrcAsn1Header::SerializeLogicalChannelConfig(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializeMeasResults(), ns3::RrcAsn1Header::SerializeNonCriticalExtensionConfiguration(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicated(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::SerializePlmnIdentity(), ns3::RrcAsn1Header::SerializeRachConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSCell(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::SerializeRadioResourceConfigDedicated(), SerializeSequenceOf(), ns3::RrcAsn1Header::SerializeSrbToAddModList(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType1(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType2(), and ns3::RrcAsn1Header::SerializeThresholdEutra().

+ Here is the caller graph for this function:

◆ SerializeNull()

◆ SerializeSequence() [1/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 0 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 250 of file lte-asn1-header.cc.

◆ SerializeSequence() [2/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 1 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 257 of file lte-asn1-header.cc.

◆ SerializeSequence() [3/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 10 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 313 of file lte-asn1-header.cc.

◆ SerializeSequence() [4/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 11 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 320 of file lte-asn1-header.cc.

◆ SerializeSequence() [5/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 2 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 264 of file lte-asn1-header.cc.

◆ SerializeSequence() [6/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 3 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 271 of file lte-asn1-header.cc.

◆ SerializeSequence() [7/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 4 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 278 of file lte-asn1-header.cc.

◆ SerializeSequence() [8/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 5 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 285 of file lte-asn1-header.cc.

◆ SerializeSequence() [9/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 6 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 292 of file lte-asn1-header.cc.

◆ SerializeSequence() [10/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 7 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 299 of file lte-asn1-header.cc.

◆ SerializeSequence() [11/12]

void ns3::Asn1Header::SerializeSequence ( std::bitset< 9 >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 306 of file lte-asn1-header.cc.

◆ SerializeSequence() [12/12]

template<int N>
void ns3::Asn1Header::SerializeSequence ( std::bitset< N >  optionalOrDefaultMask,
bool  isExtensionMarkerPresent 
) const
protected

Serialize a sequence.

Parameters
optionalOrDefaultMaskMask to serialize
isExtensionMarkerPresenttrue if Extension Marker is present

Definition at line 238 of file lte-asn1-header.cc.

References SerializeBoolean().

Referenced by ns3::RrcConnectionRequestHeader::PreSerialize(), ns3::RrcConnectionSetupHeader::PreSerialize(), ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionReestablishmentHeader::PreSerialize(), ns3::RrcConnectionReestablishmentCompleteHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRejectHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionRejectHeader::PreSerialize(), ns3::MeasurementReportHeader::PreSerialize(), ns3::RrcDlCcchMessage::SerializeDlCcchMessage(), ns3::RrcDlDcchMessage::SerializeDlDcchMessage(), ns3::RrcAsn1Header::SerializeDrbToAddModList(), ns3::RrcAsn1Header::SerializeLogicalChannelConfig(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializeMeasResults(), ns3::RrcAsn1Header::SerializeNonCriticalExtensionConfiguration(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicated(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::SerializePlmnIdentity(), ns3::RrcAsn1Header::SerializeRachConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSCell(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::SerializeRadioResourceConfigDedicated(), ns3::RrcAsn1Header::SerializeRadioResourceDedicatedSCell(), ns3::RrcAsn1Header::SerializeSrbToAddModList(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType1(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType2(), ns3::RrcUlCcchMessage::SerializeUlCcchMessage(), and ns3::RrcUlDcchMessage::SerializeUlDcchMessage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SerializeSequenceOf()

void ns3::Asn1Header::SerializeSequenceOf ( int  numElems,
int  nMax,
int  nMin 
) const
protected

◆ WriteOctet()

void ns3::Asn1Header::WriteOctet ( uint8_t  octet) const
protected

Function to write in m_serializationResult, after resizing its size.

Parameters
octetbits to write

Definition at line 80 of file lte-asn1-header.cc.

References ns3::Buffer::AddAtEnd(), ns3::Buffer::End(), m_serializationResult, ns3::Buffer::Iterator::Prev(), and ns3::Buffer::Iterator::WriteU8().

Referenced by SerializeBitset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_isDataSerialized

◆ m_numSerializationPendingBits

uint8_t ns3::Asn1Header::m_numSerializationPendingBits
mutableprotected

number of pending bits

Definition at line 69 of file lte-asn1-header.h.

Referenced by Asn1Header(), DeserializeBitset(), FinalizeSerialization(), and SerializeBitset().

◆ m_serializationPendingBits

uint8_t ns3::Asn1Header::m_serializationPendingBits
mutableprotected

pending bits

Definition at line 68 of file lte-asn1-header.h.

Referenced by Asn1Header(), DeserializeBitset(), FinalizeSerialization(), and SerializeBitset().

◆ m_serializationResult


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