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
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value, bool permissive=false) 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.
 
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.

IMPORTANT: The encoding is done following the UNALIGNED variant.

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

Constructor & Destructor Documentation

◆ Asn1Header()

ns3::Asn1Header::Asn1Header ( )

◆ ~Asn1Header()

ns3::Asn1Header::~Asn1Header ( )
override

Definition at line 43 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::HandoverPreparationInfoHeader, ns3::MeasurementReportHeader, ns3::RrcAsn1Header, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::RrcConnectionReconfigurationHeader, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::RrcConnectionReestablishmentHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::RrcConnectionRejectHeader, ns3::RrcConnectionReleaseHeader, ns3::RrcConnectionRequestHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::RrcConnectionSetupHeader, ns3::RrcDlCcchMessage, ns3::RrcDlDcchMessage, ns3::RrcUlCcchMessage, and ns3::RrcUlDcchMessage.

◆ 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 461 of file lte-asn1-header.cc.

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

Referenced by DeserializeBitstring(), DeserializeBoolean(), DeserializeInteger(), and DeserializeSequence().

+ Here is the call graph for this function:
+ Here is the caller 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 520 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 538 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 544 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 526 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 550 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 556 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 562 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ 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 532 of file lte-asn1-header.cc.

References data, and DeserializeBitstring().

+ Here is the call graph for this function:

◆ DeserializeBitstring() [9/9]

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

Deserialize a bitstring.

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

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

References data, and DeserializeBitset().

Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionRequestHeader::Deserialize(), DeserializeBitstring(), DeserializeBitstring(), DeserializeBitstring(), DeserializeBitstring(), DeserializeBitstring(), DeserializeBitstring(), DeserializeBitstring(), DeserializeBitstring(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializeMeasResults(), and ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1().

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

◆ DeserializeBoolean()

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

Deserialize a boolean.

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

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

References DeserializeBitset().

Referenced by DeserializeChoice(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicated(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSib(), DeserializeSequence(), and ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1().

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

◆ 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 711 of file lte-asn1-header.cc.

References DeserializeBoolean(), and DeserializeInteger().

Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::MeasurementReportHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentRejectHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRequestHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionSetupHeader::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()

Buffer::Iterator ns3::Asn1Header::DeserializeEnum ( int numElems,
int * selectedElem,
Buffer::Iterator bIterator )
protected

◆ 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 577 of file lte-asn1-header.cc.

References DeserializeBitset().

Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionSetupHeader::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 call graph for this function:
+ 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 746 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 754 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 818 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 826 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 762 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 770 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 778 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 786 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 794 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 802 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 810 of file lte-asn1-header.cc.

References DeserializeSequence().

+ Here is the call graph for this function:

◆ 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 732 of file lte-asn1-header.cc.

References DeserializeBitset(), and DeserializeBoolean().

Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::MeasurementReportHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentRejectHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRequestHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionSetupHeader::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(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), DeserializeSequence(), 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 840 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 31 of file lte-asn1-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

uint32_t ns3::Asn1Header::GetSerializedSize ( ) const
overridevirtual
Returns
the expected size of the header.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.

Implements ns3::Header.

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

References ns3::Buffer::GetSize(), m_isDataSerialized, m_serializationResult, and PreSerialize().

Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::MeasurementReportHeader::Deserialize(), ns3::RrcConnectionReconfigurationCompleteHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentCompleteHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionReestablishmentRejectHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRequestHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), and ns3::RrcConnectionSetupHeader::Deserialize().

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

◆ GetTypeId()

TypeId ns3::Asn1Header::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 24 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::HandoverPreparationInfoHeader, ns3::MeasurementReportHeader, ns3::RrcAsn1Header, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::RrcConnectionReconfigurationHeader, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::RrcConnectionReestablishmentHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::RrcConnectionRejectHeader, ns3::RrcConnectionReleaseHeader, ns3::RrcConnectionRequestHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::RrcConnectionSetupHeader, ns3::RrcDlCcchMessage, ns3::RrcDlDcchMessage, ns3::RrcUlCcchMessage, and ns3::RrcUlDcchMessage.

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::HandoverPreparationInfoHeader, ns3::MeasurementReportHeader, ns3::RrcAsn1Header, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::RrcConnectionReconfigurationHeader, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::RrcConnectionReestablishmentHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::RrcConnectionRejectHeader, ns3::RrcConnectionReleaseHeader, ns3::RrcConnectionRequestHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::RrcConnectionSetupHeader, ns3::RrcDlCcchMessage, ns3::RrcDlDcchMessage, ns3::RrcUlCcchMessage, and ns3::RrcUlDcchMessage.

◆ 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 58 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 78 of file lte-asn1-header.cc.

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

Referenced by FinalizeSerialization(), SerializeBitstring(), SerializeBoolean(), and SerializeInteger().

+ Here is the call graph for this function:
+ Here is the caller 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 168 of file lte-asn1-header.cc.

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [2/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [3/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [4/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [5/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [6/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [7/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [8/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitstring().

+ Here is the call graph for this function:

◆ SerializeBitstring() [9/9]

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

Serialize a bitstring.

Parameters
bitstringbitstring to serialize

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

References data, and SerializeBitset().

Referenced by ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionRequestHeader::PreSerialize(), SerializeBitstring(), SerializeBitstring(), SerializeBitstring(), SerializeBitstring(), SerializeBitstring(), SerializeBitstring(), SerializeBitstring(), SerializeBitstring(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializeMeasResults(), SerializeSequence(), and ns3::RrcAsn1Header::SerializeSystemInformationBlockType1().

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

◆ SerializeBoolean()

void ns3::Asn1Header::SerializeBoolean ( bool value) const
protected

Serialize a bool.

Parameters
valuevalue to serialize

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

References SerializeBitset().

Referenced by SerializeChoice(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicated(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSib(), SerializeSequence(), and ns3::RrcAsn1Header::SerializeSystemInformationBlockType1().

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

◆ 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 329 of file lte-asn1-header.cc.

References SerializeBoolean(), and SerializeInteger().

Referenced by ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::MeasurementReportHeader::PreSerialize(), ns3::RrcConnectionReconfigurationCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::RrcConnectionReestablishmentCompleteHeader::PreSerialize(), ns3::RrcConnectionReestablishmentHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRejectHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionRejectHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionRequestHeader::PreSerialize(), ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcConnectionSetupHeader::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 347 of file lte-asn1-header.cc.

References NS_ASSERT_MSG, and SerializeBitset().

Referenced by ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcConnectionReconfigurationCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::RrcConnectionReestablishmentCompleteHeader::PreSerialize(), ns3::RrcConnectionReestablishmentHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionRejectHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcConnectionSetupHeader::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 call graph for this function:
+ Here is the caller graph for this function:

◆ SerializeNull()

void ns3::Asn1Header::SerializeNull ( ) const
protected

Serialize nothing (null op)

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

Referenced by ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicated(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicatedSCell(), and ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSib().

+ Here is the caller graph for this function:

◆ 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 238 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 245 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 301 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 308 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 252 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 259 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 266 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 273 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 280 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 287 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 294 of file lte-asn1-header.cc.

References SerializeSequence().

+ Here is the call graph for this function:

◆ 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 226 of file lte-asn1-header.cc.

References SerializeBitstring(), and SerializeBoolean().

Referenced by ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::MeasurementReportHeader::PreSerialize(), ns3::RrcConnectionReconfigurationCompleteHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::RrcConnectionReestablishmentCompleteHeader::PreSerialize(), ns3::RrcConnectionReestablishmentHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRejectHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionRejectHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionRequestHeader::PreSerialize(), ns3::RrcConnectionSetupCompleteHeader::PreSerialize(), ns3::RrcConnectionSetupHeader::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(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), SerializeSequence(), 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

Serialize a Sequence.

Parameters
numElemselement number to serialize
nMaxmax value to serialize
nMinmin value to serialize

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

References SerializeInteger().

Referenced by ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcAsn1Header::SerializeDrbToAddModList(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializeMeasResults(), ns3::RrcAsn1Header::SerializeNonCriticalExtensionConfiguration(), ns3::RrcAsn1Header::SerializePlmnIdentity(), ns3::RrcAsn1Header::SerializeRadioResourceConfigDedicated(), ns3::RrcAsn1Header::SerializeSrbToAddModList(), and ns3::RrcAsn1Header::SerializeSystemInformationBlockType1().

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

◆ 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 68 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 58 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 57 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: