Functions

  • template <typename UintType>
    UintType HostSwap (UintType aValue)

    This template function performs host swap on a given unsigned integer value assuming big-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 96 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • uint32_t HostSwap32 (uint32_t v)

    Defined at line 97 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • uint64_t HostSwap64 (uint64_t v)

    Defined at line 98 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint8_t HostSwap<unsigned char> (uint8_t aValue)

    Defined at line 113 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint16_t HostSwap<unsigned short> (uint16_t aValue)

    Defined at line 114 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint32_t HostSwap<unsigned int> (uint32_t aValue)

    Defined at line 115 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint64_t HostSwap<unsigned long> (uint64_t aValue)

    Defined at line 116 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 big-endian encoding.

    Parameters

    aBuffer [in] Pointer to buffer to read from.

    Defined at line 125 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 big-endian encoding.

    Parameters

    aBuffer [in] Pointer to buffer to read from.

    Defined at line 134 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 big-endian encoding.

    Parameters

    aBuffer [in] Pointer to buffer to read from.

    Defined at line 147 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 big-endian encoding.

    Parameters

    aBuffer [in] Pointer to buffer to read from.

    Defined at line 160 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint8_t Read<unsigned char> (const uint8_t * aBuffer)

    Defined at line 179 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 big-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 180 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint32_t Read<unsigned int> (const uint8_t * aBuffer)

    Defined at line 181 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    uint64_t Read<unsigned long> (const uint8_t * aBuffer)

    Defined at line 182 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 big-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 big-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 190 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 big-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 202 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 big-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 215 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 big-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 229 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    void Write<unsigned char> (uint8_t aValue, uint8_t * aBuffer)

    Defined at line 251 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    void Write<unsigned short> (uint16_t aValue, uint8_t * aBuffer)

    Defined at line 252 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    void Write<unsigned int> (uint32_t aValue, uint8_t * aBuffer)

    Defined at line 253 of file ../../third_party/openthread/src/core/common/encoding.hpp

  • template <>
    void Write<unsigned long> (uint64_t aValueuint8_t * aBuffer)

    Defined at line 254 of file ../../third_party/openthread/src/core/common/encoding.hpp