Functions
-
template <typename UintType>UintType HostSwap (UintType aValue)This template function performs host swap on a given unsigned integer value assuming little-endian encoding.
Parameters
aValue The value to host swap.Template Parameters
UintType The unsigned int type. -
uint16_t HostSwap16 (uint16_t v)Defined at line 268 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
uint32_t HostSwap32 (uint32_t v)Defined at line 269 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
uint64_t HostSwap64 (uint64_t v)Defined at line 270 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint8_t HostSwap<unsigned char> (uint8_t aValue)Defined at line 285 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint16_t HostSwap<unsigned short> (uint16_t aValue)Defined at line 286 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint32_t HostSwap<unsigned int> (uint32_t aValue)Defined at line 287 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint64_t HostSwap<unsigned long> (uint64_t aValue)Defined at line 288 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
uint16_t ReadUint16 (const uint8_t * aBuffer)Reads a `uint16_t` value from a given buffer assuming little-endian encoding.
Parameters
aBuffer [in] Pointer to buffer to read from.Defined at line 297 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
uint32_t ReadUint24 (const uint8_t * aBuffer)Reads a 24-bit integer value from a given buffer assuming little-endian encoding.
Parameters
aBuffer [in] Pointer to buffer to read from.Defined at line 306 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
uint32_t ReadUint32 (const uint8_t * aBuffer)Reads a `uint32_t` value from a given buffer assuming little-endian encoding.
Parameters
aBuffer [in] Pointer to buffer to read from.Defined at line 319 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
uint64_t ReadUint64 (const uint8_t * aBuffer)Reads a `uint64_t` value from a given buffer assuming little-endian encoding.
Parameters
aBuffer [in] Pointer to buffer to read from.Defined at line 332 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint8_t Read<unsigned char> (const uint8_t * aBuffer)Defined at line 351 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <typename UintType>UintType Read (const uint8_t * aBuffer)Reads a `UintType` integer value from a given buffer assuming little-endian encoding.
Parameters
aBuffer [in] Pointer to the buffer to read from.Template Parameters
UintType The unsigned int type. -
template <>uint16_t Read<unsigned short> (const uint8_t * aBuffer)Defined at line 352 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint32_t Read<unsigned int> (const uint8_t * aBuffer)Defined at line 353 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>uint64_t Read<unsigned long> (const uint8_t * aBuffer)Defined at line 354 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <typename UintType>void Write (UintType aValue, uint8_t * aBuffer)Writes a `UintType` integer value to a given buffer assuming little-endian encoding.
Parameters
aValue [in] The value to write to buffer.aBuffer [in] Pointer to the buffer to write to.Template Parameters
UintType The unsigned int type. -
void WriteUint16 (uint16_t aValue, uint8_t * aBuffer)Writes a `uint16_t` value to a given buffer using little-endian encoding.
Parameters
aValue [in] The value to write to buffer.aBuffer [out] Pointer to buffer where the value will be written.Defined at line 362 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
void WriteUint24 (uint32_t aValue, uint8_t * aBuffer)Writes a 24-bit integer value to a given buffer using little-endian encoding.
Parameters
aValue [in] The value to write to buffer.aBuffer [out] Pointer to buffer where the value will be written.Defined at line 374 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
void WriteUint32 (uint32_t aValue, uint8_t * aBuffer)Writes a `uint32_t` value to a given buffer using little-endian encoding.
Parameters
aValue [in] The value to write to buffer.aBuffer [out] Pointer to buffer where the value will be written.Defined at line 387 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
void WriteUint64 (uint64_t aValue, uint8_t * aBuffer)Writes a `uint64_t` value to a given buffer using little-endian encoding.
Parameters
aValue [in] The value to write to buffer.aBuffer [out] Pointer to buffer where the value will be written.Defined at line 401 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>void Write<unsigned char> (uint8_t aValue, uint8_t * aBuffer)Defined at line 423 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>void Write<unsigned short> (uint16_t aValue, uint8_t * aBuffer)Defined at line 424 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>void Write<unsigned int> (uint32_t aValue, uint8_t * aBuffer)Defined at line 425 of file ../../third_party/openthread/src/core/common/encoding.hpp
-
template <>void Write<unsigned long> (uint64_t aValueuint8_t * aBuffer)Defined at line 426 of file ../../third_party/openthread/src/core/common/encoding.hpp