|
INET Framework for OMNeT++/OMNEST
|
This class provides an efficient in memory bit input stream. More...
#include <MemoryInputStream.h>
Public Member Functions | |
| MemoryInputStream (const std::vector< uint8_t > &data, b length=b(-1), b position=b(0)) | |
| MemoryInputStream (const uint8_t *buffer, b length, b position=b(0)) | |
Stream querying functions | |
| bool | isReadBeyondEnd () const |
| Returns true if a read operation ever read beyond the end of the stream. More... | |
| b | getLength () const |
| Returns the total length of the stream measured in bits. More... | |
| b | getRemainingLength () const |
| Returns the remaining unread length of the stream measured in bits. More... | |
| b | getPosition () const |
| Returns the current read position of the stream measured in bits. More... | |
| const std::vector< uint8_t > & | getData () const |
| void | copyData (std::vector< bool > &result, b offset=b(0), b length=b(-1)) const |
| void | copyData (std::vector< uint8_t > &result, B offset=B(0), B length=B(-1)) const |
Stream updating functions | |
| void | seek (b position) |
| Updates the read position of the stream. More... | |
Bit streaming functions | |
| bool | readBit () |
| Reads a bit at the current position of the stream. More... | |
| bool | readBitRepeatedly (bool value, size_t count) |
| Reads the same bit repeatedly at the current position of the stream. More... | |
| b | readBits (std::vector< bool > &bits, b length) |
| Reads a sequence of bits at the current position of the stream keeping the original bit order. More... | |
Byte streaming functions | |
| uint8_t | readByte () |
| Reads a byte at the current position of the stream in MSB to LSB bit order. More... | |
| bool | readByteRepeatedly (uint8_t value, size_t count) |
| Reads the same byte repeatedly at the current position of the stream in MSB to LSB bit order. More... | |
| B | readBytes (std::vector< uint8_t > &bytes, B length) |
| Reads a sequence of bytes at the current position of the stream keeping the original byte order in MSB to LSB bit order. More... | |
| B | readBytes (uint8_t *buffer, B length) |
| Reads a sequence of bytes at the current position of the stream keeping the original byte order in MSB to LSB bit order. More... | |
Basic type streaming functions | |
| uint8_t | readUint2 () |
| Reads a 2 bit unsigned integer at the current position of the stream in MSB to LSB bit order. More... | |
| uint8_t | readUint4 () |
| Reads a 4 bit unsigned integer at the current position of the stream in MSB to LSB bit order. More... | |
| uint8_t | readUint8 () |
| Reads an 8 bit unsigned integer at the current position of the stream in MSB to LSB bit order. More... | |
| uint16_t | readUint16Be () |
| Reads a 16 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| uint16_t | readUint16Le () |
| Reads a 16 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order. More... | |
| uint32_t | readUint24Be () |
| Reads a 24 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| uint32_t | readUint24Le () |
| Reads a 24 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order. More... | |
| uint32_t | readUint32Be () |
| Reads a 32 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| uint32_t | readUint32Le () |
| Reads a 32 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order. More... | |
| uint64_t | readUint48Be () |
| Reads a 48 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| uint64_t | readUint48Le () |
| Reads a 48 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order. More... | |
| uint64_t | readUint64Be () |
| Reads a 64 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| uint64_t | readUint64Le () |
| Reads a 64 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order. More... | |
INET specific type streaming functions | |
| MacAddress | readMacAddress () |
| Reads a MAC address at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| Ipv4Address | readIpv4Address () |
| Reads an Ipv4 address at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
| Ipv6Address | readIpv6Address () |
| Reads an Ipv6 address at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
other useful streaming functions | |
| std::string | readString () |
| Reads a string from the current position until a zero. More... | |
| uint64_t | readNBitsToUint64Be (uint8_t n) |
| Reads n bits of a 64 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order. More... | |
Protected Member Functions | |
| bool | isByteAligned () |
Protected Attributes | |
| std::vector< uint8_t > | data |
| This vector contains the bits that are read from this stream. More... | |
| b | length |
| The length of the bit stream measured in bits. More... | |
| b | position |
| The position of the next bit that will be read measured in bits. More... | |
| bool | isReadBeyondEnd_ = false |
| This flag indicates if the stream has been read beyond the end of data. More... | |
This class provides an efficient in memory bit input stream.
The stream provides a set of read functions that read data at the current position of the stream. Most functions are implemented in the header to allow inlining.
|
inline |
Referenced by inet::FieldsChunkSerializer::deserialize().
|
inline |
|
inline |
|
inline |
Returns the total length of the stream measured in bits.
|
inline |
Returns the current read position of the stream measured in bits.
Referenced by inet::ApplicationPacketSerializer::deserialize(), inet::EtherAppReqSerializer::deserialize(), inet::UnitDiskPhyHeaderSerializer::deserialize(), inet::VoipStreamPacketSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::physicallayer::ApskPhyHeaderSerializer::deserialize(), inet::BMacHeaderSerializer::deserialize(), inet::GenericAppMsgSerializer::deserialize(), inet::ospf::OspfPacketSerializer::deserialize(), inet::CsmaCaMacHeaderSerializer::deserialize(), inet::AckingMacHeaderSerializer::deserialize(), inet::GptpPacketSerializer::deserialize(), inet::Ipv4HeaderSerializer::deserialize(), inet::tcp::TcpHeaderSerializer::deserialize(), inet::FieldsChunkSerializer::deserialize(), inet::EtherAppRespSerializer::deserialize(), inet::Chunk::deserialize(), inet::Ipv4HeaderSerializer::deserializeOption(), inet::ArpPacketSerializer::readIpv4Address(), and inet::ArpPacketSerializer::readMacAddress().
|
inline |
Returns the remaining unread length of the stream measured in bits.
Referenced by inet::BitCountChunkSerializer::deserialize(), inet::BitsChunkSerializer::deserialize(), inet::BytesChunkSerializer::deserialize(), inet::ByteCountChunkSerializer::deserialize(), inet::rtp::RtcpPacketSerializer::deserialize(), inet::PimPacketSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::sctp::SctpHeaderSerializer::deserialize(), inet::Ipv4HeaderSerializer::deserialize(), and inet::deserializeIpv6NdOptions().
|
inlineprotected |
|
inline |
Returns true if a read operation ever read beyond the end of the stream.
Referenced by inet::Chunk::deserialize().
|
inline |
Reads a bit at the current position of the stream.
Referenced by inet::Ipv6HeaderSerializer::deserialize(), inet::rtp::RtcpPacketSerializer::deserialize(), inet::rtp::RtpPacketSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::MplsPacketSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::PimPacketSerializer::deserialize(), inet::aodv::AodvControlPacketsSerializer::deserialize(), inet::bgp::BgpHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserialize(), inet::physicallayer::Ieee80211OfdmPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211ErpOfdmPhyHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserializeAsExternalLsa(), inet::ospfv2::Ospfv2PacketSerializer::deserializeOspfOptions(), and inet::ospfv2::Ospfv2PacketSerializer::deserializeRouterLsa().
|
inline |
Reads the same bit repeatedly at the current position of the stream.
Referenced by inet::BitCountChunkSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::UnitDiskPhyHeaderSerializer::deserialize(), inet::BMacHeaderSerializer::deserialize(), inet::physicallayer::ApskPhyHeaderSerializer::deserialize(), and inet::bgp::BgpHeaderSerializer::deserialize().
Reads a sequence of bits at the current position of the stream keeping the original bit order.
Referenced by inet::BitsChunkSerializer::deserialize().
|
inline |
Reads a byte at the current position of the stream in MSB to LSB bit order.
Referenced by inet::Ieee8021aeTagTpidHeaderSerializer::deserialize(), inet::Ieee8022LlcHeaderSerializer::deserialize(), inet::Ipv6HeaderSerializer::deserialize(), inet::rtp::RtcpPacketSerializer::deserialize(), inet::GenericAppMsgSerializer::deserialize(), inet::VoipStreamPacketSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::BMacHeaderSerializer::deserialize(), inet::IcmpHeaderSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::Icmpv6HeaderSerializer::deserialize(), inet::PimPacketSerializer::deserialize(), inet::aodv::AodvControlPacketsSerializer::deserialize(), inet::CsmaCaMacHeaderSerializer::deserialize(), inet::bgp::BgpHeaderSerializer::deserialize(), inet::ArpPacketSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MgmtFrameSerializer::deserialize(), inet::Ieee8021aeTagEpdHeaderSerializer::deserialize(), inet::physicallayer::EthernetPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211DsssPhyHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserialize(), inet::physicallayer::EthernetFragmentPhyHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MpduSubframeHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211HrDsssPhyHeaderSerializer::deserialize(), inet::deserializeIpv6NdOptions(), inet::ospfv2::Ospfv2PacketSerializer::deserializeLsaHeader(), inet::Ipv4HeaderSerializer::deserializeOption(), inet::tcp::TcpHeaderSerializer::deserializeOption(), inet::ospfv2::Ospfv2PacketSerializer::deserializeRouterLsa(), and inet::ospfv2::Ospfv2PacketSerializer::deserializeSummaryLsa().
|
inline |
Reads the same byte repeatedly at the current position of the stream in MSB to LSB bit order.
Referenced by inet::ByteCountChunkSerializer::deserialize(), inet::Ipv6HeaderSerializer::deserialize(), inet::ApplicationPacketSerializer::deserialize(), inet::VoipStreamPacketSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::BMacHeaderSerializer::deserialize(), inet::GenericAppMsgSerializer::deserialize(), inet::physicallayer::ApskPhyHeaderSerializer::deserialize(), inet::EtherAppReqSerializer::deserialize(), inet::ospf::OspfPacketSerializer::deserialize(), inet::CsmaCaMacHeaderSerializer::deserialize(), inet::AckingMacHeaderSerializer::deserialize(), inet::EtherAppRespSerializer::deserialize(), inet::physicallayer::EthernetPhyHeaderSerializer::deserialize(), inet::physicallayer::EthernetFragmentPhyHeaderSerializer::deserialize(), inet::GptpPacketSerializer::readGptpPdelayReqPart(), and inet::GptpPacketSerializer::readGptpSyncPart().
Reads a sequence of bytes at the current position of the stream keeping the original byte order in MSB to LSB bit order.
Referenced by inet::BytesChunkSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::sctp::SctpHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MgmtFrameSerializer::deserialize(), inet::Ipv4HeaderSerializer::deserialize(), and inet::tcp::TcpHeaderSerializer::deserialize().
Reads a sequence of bytes at the current position of the stream keeping the original byte order in MSB to LSB bit order.
|
inline |
Reads an Ipv4 address at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::DhcpMessageSerializer::deserialize(), inet::DsdvHelloSerializer::deserialize(), inet::RipPacketSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::ospf::OspfPacketSerializer::deserialize(), inet::aodv::AodvControlPacketsSerializer::deserialize(), inet::bgp::BgpHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserializeAsExternalLsa(), inet::ospfv2::Ospfv2PacketSerializer::deserializeLsaHeader(), inet::ospfv2::Ospfv2PacketSerializer::deserializeNetworkLsa(), inet::Ipv4HeaderSerializer::deserializeOption(), inet::ospfv2::Ospfv2PacketSerializer::deserializeOspfHeader(), inet::ospfv2::Ospfv2PacketSerializer::deserializeRouterLsa(), inet::ospfv2::Ospfv2PacketSerializer::deserializeSummaryLsa(), and inet::ArpPacketSerializer::readIpv4Address().
|
inline |
Reads an Ipv6 address at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::Ipv6HeaderSerializer::deserialize(), inet::Icmpv6HeaderSerializer::deserialize(), inet::aodv::AodvControlPacketsSerializer::deserialize(), and inet::deserializeIpv6NdOptions().
|
inline |
Reads a MAC address at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::BMacHeaderSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::EthernetMacAddressFieldsSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::CsmaCaMacHeaderSerializer::deserialize(), inet::AckingMacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MgmtFrameSerializer::deserialize(), inet::ieee80211::Ieee80211MsduSubframeHeaderSerializer::deserialize(), inet::EthernetMacHeaderSerializer::deserialize(), inet::deserializeIpv6NdOptions(), and inet::ArpPacketSerializer::readMacAddress().
|
inline |
Reads n bits of a 64 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::Ipv6HeaderSerializer::deserialize(), inet::rtp::RtcpPacketSerializer::deserialize(), inet::rtp::RtpPacketSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::MplsPacketSerializer::deserialize(), inet::PimPacketSerializer::deserialize(), inet::bgp::BgpHeaderSerializer::deserialize(), inet::aodv::AodvControlPacketsSerializer::deserialize(), inet::physicallayer::Ieee80211FhssPhyHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserialize(), inet::physicallayer::Ieee80211OfdmPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211ErpOfdmPhyHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserializeAsExternalLsa(), and inet::ospfv2::Ospfv2PacketSerializer::deserializeRouterLsa().
|
inline |
|
inline |
Reads a 16 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::Ieee802EpdHeaderSerializer::deserialize(), inet::EthernetControlFrameSerializer::deserialize(), inet::Ieee8021rTagTpidHeaderSerializer::deserialize(), inet::Ieee8022LlcHeaderSerializer::deserialize(), inet::Ieee8021aeTagTpidHeaderSerializer::deserialize(), inet::Ieee8021qTagTpidHeaderSerializer::deserialize(), inet::Ipv6HeaderSerializer::deserialize(), inet::rtp::RtcpPacketSerializer::deserialize(), inet::rtp::RtpMpegPacketSerializer::deserialize(), inet::rtp::RtpPacketSerializer::deserialize(), inet::UnitDiskPhyHeaderSerializer::deserialize(), inet::physicallayer::ApskPhyHeaderSerializer::deserialize(), inet::IcmpHeaderSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::EchoPacketSerializer::deserialize(), inet::Icmpv6HeaderSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::BMacHeaderSerializer::deserialize(), inet::PimPacketSerializer::deserialize(), inet::PppHeaderSerializer::deserialize(), inet::RipPacketSerializer::deserialize(), inet::SequenceNumberHeaderSerializer::deserialize(), inet::UdpHeaderSerializer::deserialize(), inet::VoipStreamPacketSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::CrcHeaderSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::CsmaCaMacHeaderSerializer::deserialize(), inet::bgp::BgpHeaderSerializer::deserialize(), inet::ospf::OspfPacketSerializer::deserialize(), inet::AckingMacHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211FhssPhyHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MgmtFrameSerializer::deserialize(), inet::ArpPacketSerializer::deserialize(), inet::Ieee8021qTagEpdHeaderSerializer::deserialize(), inet::Ieee8021rTagEpdHeaderSerializer::deserialize(), inet::Ieee8021aeTagEpdHeaderSerializer::deserialize(), inet::PppTrailerSerializer::deserialize(), inet::EthernetTypeOrLengthFieldSerializer::deserialize(), inet::physicallayer::Ieee80211IrPhyHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MsduSubframeHeaderSerializer::deserialize(), inet::EthernetMacHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserialize(), inet::physicallayer::Ieee80211DsssPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211HrDsssPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211OfdmPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211ErpOfdmPhyHeaderSerializer::deserialize(), inet::deserializeIpv6NdOptions(), inet::ospfv2::Ospfv2PacketSerializer::deserializeLsaHeader(), inet::Ipv4HeaderSerializer::deserializeOption(), inet::tcp::TcpHeaderSerializer::deserializeOption(), inet::ospfv2::Ospfv2PacketSerializer::deserializeOspfHeader(), inet::ospfv2::Ospfv2PacketSerializer::deserializeRouterLsa(), inet::GptpPacketSerializer::readGptpBase(), inet::GptpPacketSerializer::readGptpFollowUpInformationTlv(), and inet::GptpPacketSerializer::readPortIdentity().
|
inline |
Reads a 16 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order.
Referenced by inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize().
|
inline |
Reads a 2 bit unsigned integer at the current position of the stream in MSB to LSB bit order.
Referenced by inet::Ipv6HeaderSerializer::deserialize().
|
inline |
Reads a 24 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::ospfv2::Ospfv2PacketSerializer::deserializeAsExternalLsa(), inet::ospfv2::Ospfv2PacketSerializer::deserializeSummaryLsa(), and inet::GptpPacketSerializer::readGptpFollowUpInformationTlv().
|
inline |
Reads a 24 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order.
|
inline |
Reads a 32 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::Ieee8021aeTagTpidHeaderSerializer::deserialize(), inet::rtp::RtcpPacketSerializer::deserialize(), inet::rtp::RtpPacketSerializer::deserialize(), inet::Ipv6HeaderSerializer::deserialize(), inet::ApplicationPacketSerializer::deserialize(), inet::RipPacketSerializer::deserialize(), inet::IcmpHeaderSerializer::deserialize(), inet::Icmpv6HeaderSerializer::deserialize(), inet::VoipStreamPacketSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::FcsHeaderSerializer::deserialize(), inet::GenericAppMsgSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::DsdvHelloSerializer::deserialize(), inet::IgmpHeaderSerializer::deserialize(), inet::EtherAppReqSerializer::deserialize(), inet::PimPacketSerializer::deserialize(), inet::aodv::AodvControlPacketsSerializer::deserialize(), inet::bgp::BgpHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::Ieee8021aeTagEpdHeaderSerializer::deserialize(), inet::CsmaCaMacTrailerSerializer::deserialize(), inet::EtherAppRespSerializer::deserialize(), inet::ieee80211::Ieee80211MacTrailerSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserialize(), inet::EthernetFcsSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserializeAsExternalLsa(), inet::deserializeIpv6NdOptions(), inet::ospfv2::Ospfv2PacketSerializer::deserializeLsaHeader(), inet::Ipv4HeaderSerializer::deserializeOption(), inet::tcp::TcpHeaderSerializer::deserializeOption(), inet::ospfv2::Ospfv2PacketSerializer::deserializeRouterLsa(), inet::GptpPacketSerializer::readGptpBase(), inet::GptpPacketSerializer::readGptpFollowUpInformationTlv(), inet::GptpPacketSerializer::readScaledNS(), and inet::GptpPacketSerializer::readTimestamp().
|
inline |
Reads a 32 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order.
|
inline |
Reads a 4 bit unsigned integer at the current position of the stream in MSB to LSB bit order.
Referenced by inet::Ipv6HeaderSerializer::deserialize(), inet::rtp::RtpPacketSerializer::deserialize(), inet::physicallayer::Ieee80211FhssPhyHeaderSerializer::deserialize(), inet::GptpPacketSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MpduSubframeHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211OfdmPhyHeaderSerializer::deserialize(), inet::physicallayer::Ieee80211ErpOfdmPhyHeaderSerializer::deserialize(), and inet::GptpPacketSerializer::readGptpBase().
|
inline |
Reads a 48 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::GptpPacketSerializer::readTimestamp().
|
inline |
Reads a 48 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order.
|
inline |
Reads a 64 bit unsigned integer at the current position of the stream in big endian byte order and MSB to LSB bit order.
Referenced by inet::rtp::RtcpPacketSerializer::deserialize(), inet::XMacHeaderSerializer::deserialize(), inet::BMacHeaderSerializer::deserialize(), inet::GenericAppMsgSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::AckingMacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MgmtFrameSerializer::deserialize(), inet::ieee80211::Ieee80211MacHeaderSerializer::deserialize(), inet::GptpPacketSerializer::readClock8(), inet::GptpPacketSerializer::readPortIdentity(), and inet::GptpPacketSerializer::readScaledNS().
|
inline |
Reads a 64 bit unsigned integer at the current position of the stream in little endian byte order and MSB to LSB bit order.
|
inline |
Reads an 8 bit unsigned integer at the current position of the stream in MSB to LSB bit order.
Referenced by inet::Ipv6HeaderSerializer::deserialize(), inet::RipPacketSerializer::deserialize(), inet::DhcpMessageSerializer::deserialize(), inet::FragmentNumberHeaderSerializer::deserialize(), inet::Ieee8021dBpduSerializer::deserialize(), inet::MplsPacketSerializer::deserialize(), inet::Icmpv6HeaderSerializer::deserialize(), inet::PppHeaderSerializer::deserialize(), inet::ospf::OspfPacketSerializer::deserialize(), inet::CsmaCaMacHeaderSerializer::deserialize(), inet::AckingMacHeaderSerializer::deserialize(), inet::ieee80211::Ieee80211MpduSubframeHeaderSerializer::deserialize(), inet::ospfv2::Ospfv2PacketSerializer::deserializeOspfHeader(), inet::ospfv2::Ospfv2PacketSerializer::deserializeSummaryLsa(), and inet::GptpPacketSerializer::readGptpBase().
|
inline |
Updates the read position of the stream.
Referenced by inet::ospf::OspfPacketSerializer::deserialize(), inet::GptpPacketSerializer::deserialize(), inet::Ipv4HeaderSerializer::deserializeOption(), inet::ArpPacketSerializer::readIpv4Address(), and inet::ArpPacketSerializer::readMacAddress().
|
protected |
This vector contains the bits that are read from this stream.
The first bit of the bit stream is stored in the most significant bit of the first byte. For the longest possible bit stream given the same number of bytes, the last bit of the bit stream is stored in the least significant bit of the last byte. In other cases some of the lower bits of the last byte are not used.
|
protected |
This flag indicates if the stream has been read beyond the end of data.
|
protected |
The length of the bit stream measured in bits.
|
protected |
The position of the next bit that will be read measured in bits.