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"
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 | |
Related Symbols inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
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.
ns3::Asn1Header::Asn1Header | ( | ) |
Definition at line 36 of file lte-asn1-header.cc.
References m_isDataSerialized, m_numSerializationPendingBits, and m_serializationPendingBits.
|
override |
Definition at line 43 of file lte-asn1-header.cc.
|
overridepure virtual |
start | an iterator which points to where the header should read from. |
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.
|
protected |
Deserialize a bitset.
data | buffer to store the result |
bIterator | buffer iterator |
|
protected |
Deserialize a bitset.
data | buffer to store the result |
bIterator | 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().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 520 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 538 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 544 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 526 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 550 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 556 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 562 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | buffer iterator |
Definition at line 532 of file lte-asn1-header.cc.
References data, and DeserializeBitstring().
|
protected |
Deserialize a bitstring.
bitstring | buffer to store the result |
bIterator | 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().
|
protected |
Deserialize a boolean.
value | buffer to store the result |
bIterator | 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().
|
protected |
Deserialize a Choice (set of options)
numOptions | number of options |
isExtensionMarkerPresent | true if extension mark is present |
selectedOption | buffer to store the result |
bIterator | 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().
|
protected |
Deserialize an Enum.
numElems | number of elements in the enum |
selectedElem | buffer to store the result |
bIterator | buffer iterator |
Definition at line 725 of file lte-asn1-header.cc.
References DeserializeInteger().
Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentRequestHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionRequestHeader::Deserialize(), ns3::RrcAsn1Header::DeserializeDrbToAddModList(), ns3::RrcAsn1Header::DeserializeLogicalChannelConfig(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicated(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializePlmnIdentity(), ns3::RrcAsn1Header::DeserializeQoffsetRange(), ns3::RrcAsn1Header::DeserializeRachConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::DeserializeSystemInformationBlockType1(), and ns3::RrcAsn1Header::DeserializeSystemInformationBlockType2().
|
protected |
Deserialize an integer.
n | buffer to store the result |
nmin | min value to serialize |
nmax | max value to serialize |
bIterator | 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().
|
protected |
Deserialize nothing (null op)
bIterator | buffer iterator |
Definition at line 834 of file lte-asn1-header.cc.
Referenced by ns3::HandoverPreparationInfoHeader::Deserialize(), ns3::MeasurementReportHeader::Deserialize(), ns3::RrcConnectionReconfigurationHeader::Deserialize(), ns3::RrcConnectionReestablishmentHeader::Deserialize(), ns3::RrcConnectionRejectHeader::Deserialize(), ns3::RrcConnectionReleaseHeader::Deserialize(), ns3::RrcConnectionSetupCompleteHeader::Deserialize(), ns3::RrcConnectionSetupHeader::Deserialize(), ns3::RrcAsn1Header::DeserializeMeasConfig(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicated(), ns3::RrcAsn1Header::DeserializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigCommonSib(), and ns3::RrcAsn1Header::DeserializeSrbToAddModList().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 746 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 754 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 818 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 826 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 762 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 770 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 778 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 786 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 794 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 802 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | buffer iterator |
Definition at line 810 of file lte-asn1-header.cc.
References DeserializeSequence().
|
protected |
Deserialize a sequence.
optionalOrDefaultMask | buffer to store the result |
isExtensionMarkerPresent | true if Extension Marker is present |
bIterator | 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().
|
protected |
Deserialize a Sequence.
numElems | buffer to store the result |
nMax | max value to serialize |
nMin | min value to serialize |
bIterator | 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().
|
protected |
Finalizes an in progress serialization.
Definition at line 449 of file lte-asn1-header.cc.
References m_isDataSerialized, m_numSerializationPendingBits, m_serializationPendingBits, and SerializeBitset().
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(), and ns3::RrcConnectionSetupHeader::PreSerialize().
|
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.
Implements ns3::ObjectBase.
Reimplemented in ns3::RrcAsn1Header.
Definition at line 31 of file lte-asn1-header.cc.
References GetTypeId().
|
overridevirtual |
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().
|
static |
Get the type ID.
Definition at line 24 of file lte-asn1-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
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().
|
overridepure virtual |
os | output 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.
|
overridevirtual |
start | an 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().
|
protected |
Serialize a bitset.
data | data 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().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 168 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 186 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 192 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 174 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 198 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 204 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 210 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring to serialize |
Definition at line 180 of file lte-asn1-header.cc.
References data, and SerializeBitstring().
|
protected |
Serialize a bitstring.
bitstring | bitstring 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().
|
protected |
Serialize a bool.
value | value 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().
|
protected |
Serialize a Choice (set of options)
numOptions | number of options |
selectedOption | selected option |
isExtensionMarkerPresent | true 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().
|
protected |
Serialize an Enum.
numElems | number of elements in the enum |
selectedElem | selected element |
Definition at line 322 of file lte-asn1-header.cc.
References SerializeInteger().
Referenced by ns3::HandoverPreparationInfoHeader::PreSerialize(), ns3::RrcConnectionReconfigurationHeader::PreSerialize(), ns3::RrcConnectionReestablishmentRequestHeader::PreSerialize(), ns3::RrcConnectionReleaseHeader::PreSerialize(), ns3::RrcConnectionRequestHeader::PreSerialize(), ns3::RrcAsn1Header::SerializeDrbToAddModList(), ns3::RrcAsn1Header::SerializeLogicalChannelConfig(), ns3::RrcAsn1Header::SerializeMeasConfig(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicated(), ns3::RrcAsn1Header::SerializePhysicalConfigDedicatedSCell(), ns3::RrcAsn1Header::SerializePlmnIdentity(), ns3::RrcAsn1Header::SerializeQoffsetRange(), ns3::RrcAsn1Header::SerializeRachConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommon(), ns3::RrcAsn1Header::SerializeRadioResourceConfigCommonSib(), ns3::RrcAsn1Header::SerializeSystemInformationBlockType1(), and ns3::RrcAsn1Header::SerializeSystemInformationBlockType2().
|
protected |
Serialize an Integer.
n | value to serialize |
nmin | min value to serialize |
nmax | max 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().
|
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().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 238 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 245 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 301 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 308 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 252 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 259 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 266 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 273 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 280 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 287 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true if Extension Marker is present |
Definition at line 294 of file lte-asn1-header.cc.
References SerializeSequence().
|
protected |
Serialize a sequence.
optionalOrDefaultMask | Mask to serialize |
isExtensionMarkerPresent | true 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().
|
protected |
Serialize a Sequence.
numElems | element number to serialize |
nMax | max value to serialize |
nMin | min 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().
|
protected |
Function to write in m_serializationResult, after resizing its size.
octet | bits 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().
|
mutableprotected |
true if data is serialized
Definition at line 59 of file lte-asn1-header.h.
Referenced by Asn1Header(), FinalizeSerialization(), GetSerializedSize(), Serialize(), ns3::HandoverPreparationInfoHeader::SetMessage(), ns3::MeasurementReportHeader::SetMessage(), ns3::RrcConnectionReconfigurationCompleteHeader::SetMessage(), ns3::RrcConnectionReconfigurationHeader::SetMessage(), ns3::RrcConnectionReestablishmentCompleteHeader::SetMessage(), ns3::RrcConnectionReestablishmentHeader::SetMessage(), ns3::RrcConnectionReestablishmentRejectHeader::SetMessage(), ns3::RrcConnectionReestablishmentRequestHeader::SetMessage(), ns3::RrcConnectionRejectHeader::SetMessage(), ns3::RrcConnectionReleaseHeader::SetMessage(), ns3::RrcConnectionRequestHeader::SetMessage(), ns3::RrcConnectionSetupCompleteHeader::SetMessage(), and ns3::RrcConnectionSetupHeader::SetMessage().
|
mutableprotected |
number of pending bits
Definition at line 58 of file lte-asn1-header.h.
Referenced by Asn1Header(), DeserializeBitset(), FinalizeSerialization(), and SerializeBitset().
|
mutableprotected |
pending bits
Definition at line 57 of file lte-asn1-header.h.
Referenced by Asn1Header(), DeserializeBitset(), FinalizeSerialization(), and SerializeBitset().
|
mutableprotected |
serialization result
Definition at line 60 of file lte-asn1-header.h.
Referenced by GetSerializedSize(), 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(), Serialize(), and WriteOctet().