Functions

  • uint16_t HostSwap16 (uint16_t v)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 16-bit value, presumed to

    be in little endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    v [in] The 16-bit value to be byte order swapped.

    Returns

    The input value, if necessary, byte order swapped.

    Defined at line 192 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint32_t HostSwap32 (uint32_t v)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 32-bit value, presumed to

    be in little endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    v [in] The 32-bit value to be byte order swapped.

    Returns

    The input value, if necessary, byte order swapped.

    Defined at line 207 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint64_t HostSwap64 (uint64_t v)

    This conditionally performs, as necessary for the target system, a

    byte order swap by value of the specified 64-bit value, presumed to

    be in little endian byte ordering to the target system (i.e. host)

    byte ordering.

    Consequently, on little endian target systems, this is a no-op and

    on big endian target systems, this performs a reordering.

    Parameters

    v [in] The 64-bit value to be byte order swapped.

    Returns

    The input value, if necessary, byte order swapped.

    Defined at line 222 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint16_t Get16 (const uint8_t * p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 16-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in target system byte ordering.

    Parameters

    p [in] A pointer address, potentially unaligned, to read the 16-bit little endian byte ordered value from.

    Returns

    The 16-bit value at the specified pointer address, if

    necessary, byte reordered.

    Defined at line 236 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint32_t Get32 (const uint8_t * p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 32-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in target system byte ordering.

    Parameters

    p [in] A pointer address, potentially unaligned, to read the 32-bit little endian byte ordered value from.

    Returns

    The 32-bit value at the specified pointer address, if

    necessary, byte reordered.

    Defined at line 250 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint64_t Get64 (const uint8_t * p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 64-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in target system byte ordering.

    Parameters

    p [in] A pointer address, potentially unaligned, to read the 64-bit little endian byte ordered value from.

    Returns

    The 64-bit value at the specified pointer address, if

    necessary, byte reordered.

    Defined at line 264 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • void Put16 (uint8_t * p, uint16_t v)

    Perform a, potentially unaligned, memory write of the target system

    byte ordered 16-bit value to the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in little endian byte ordering.

    Parameters

    p [in] A pointer address, potentially unaligned, to write the target system byte ordered 16-bit value to in little endian byte ordering.
    v [in] The 16-bit value to write, if necessary, byte reordered.

    Defined at line 279 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • void Put32 (uint8_t * p, uint32_t v)

    Perform a, potentially unaligned, memory write of the target system

    byte ordered 32-bit value to the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in little endian byte ordering.

    Parameters

    p [in] A pointer address, potentially unaligned, to write the target system byte ordered 32-bit value to in little endian byte ordering.
    v [in] The 32-bit value to write, if necessary, byte reordered.

    Defined at line 294 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • void Put64 (uint8_t * p, uint64_t v)

    Perform a, potentially unaligned, memory write of the target system

    byte ordered 64-bit value to the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in little endian byte ordering.

    Parameters

    p [in] A pointer address, potentially unaligned, to write the target system byte ordered 64-bit value to in little endian byte ordering.
    v [in] The 64-bit value to write, if necessary, byte reordered.

    Defined at line 309 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint16_t Read16 (uint8_t *& p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 16-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to put

    the value in target system byte ordering, and increment the pointer

    by 16-bits (2 bytes).

    Parameters

    p [in] A reference to a pointer address, potentially unaligned, to read the 16-bit little endian byte ordered value from and to then increment by 16- bits (2 bytes).

    Returns

    The 16-bit value at the specified pointer address, if necessary,

    byte order swapped.

    Defined at line 326 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint32_t Read32 (uint8_t *& p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 32-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to put

    the value in target system byte ordering, and increment the pointer

    by 32-bits (4 bytes).

    Parameters

    p [in] A reference to a pointer address, potentially unaligned, to read the 32-bit little endian byte ordered value from and to then increment by 32- bits (4 bytes).

    Returns

    The 32-bit value at the specified pointer address, if necessary,

    byte order swapped.

    Defined at line 343 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint64_t Read64 (uint8_t *& p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 64-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to put

    the value in target system byte ordering, and increment the pointer

    by 64-bits (8 bytes).

    Parameters

    p [in] A reference to a pointer address, potentially unaligned, to read the 64-bit little endian byte ordered value from and to then increment by 64- bits (8 bytes).

    Returns

    The 64-bit value at the specified pointer address, if necessary,

    byte order swapped.

    Defined at line 360 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint16_t Read16 (const uint8_t *& p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 16-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to put

    the value in target system byte ordering, and increment the pointer

    by 16-bits (2 bytes).

    Parameters

    p [in] A reference to a constant pointer address, potentially unaligned, to read the 16-bit little endian byte ordered value from and to then increment by 16- bits (2 bytes).

    Returns

    The 16-bit value at the specified pointer address, if necessary,

    byte order swapped.

    Defined at line 377 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint32_t Read32 (const uint8_t *& p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 32-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to put

    the value in target system byte ordering, and increment the pointer

    by 32-bits (4 bytes).

    Parameters

    p [in] A reference to a constant pointer address, potentially unaligned, to read the 32-bit little endian byte ordered value from and to then increment by 32- bits (4 bytes).

    Returns

    The 32-bit value at the specified pointer address, if necessary,

    byte order swapped.

    Defined at line 394 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • uint64_t Read64 (const uint8_t *& p)

    Perform a, potentially unaligned, memory read of the little endian

    byte ordered 64-bit value from the specified pointer address,

    perform byte reordering, as necessary, for the target system to put

    the value in target system byte ordering, and increment the pointer

    by 64-bits (8 bytes).

    Parameters

    p [in] A reference to a constant pointer address, potentially unaligned, to read the 64-bit little endian byte ordered value from and to then increment by 64- bits (8 bytes).

    Returns

    The 64-bit value at the specified pointer address, if necessary,

    byte order swapped.

    Defined at line 411 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • void Write16 (uint8_t *& p, uint16_t v)

    Perform a, potentially unaligned, memory write of the target system

    byte ordered 16-bit value to the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in little endian byte ordering.

    Parameters

    p [in] A reference to a pointer address, potentially unaligned, to write the target system byte ordered 16-bit value to in little endian byte ordering and to then increment by 16-bits (2 bytes).
    v [in] The 16-bit value to write, if necessary, byte order swapped.

    Defined at line 429 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • void Write32 (uint8_t *& p, uint32_t v)

    Perform a, potentially unaligned, memory write of the target system

    byte ordered 32-bit value to the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in little endian byte ordering.

    Parameters

    p [in] A reference to a pointer address, potentially unaligned, to write the target system byte ordered 32-bit value to in little endian byte ordering and to then increment by 32-bits (4 bytes).
    v [in] The 32-bit value to write, if necessary, byte order swapped.

    Defined at line 447 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h

  • void Write64 (uint8_t *& puint64_t v)

    Perform a, potentially unaligned, memory write of the target system

    byte ordered 64-bit value to the specified pointer address,

    perform byte reordering, as necessary, for the target system to

    put the value in little endian byte ordering.

    Parameters

    p [in] A reference to a pointer address, potentially unaligned, to write the target system byte ordered 64-bit value to in little endian byte ordering and to then increment by 64-bits (8 bytes).
    v [in] The 64-bit value to write, if necessary, byte order swapped.

    Defined at line 465 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h