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 big endian byte ordering to the target system (i.e. host)
byte ordering.
Consequently, on bit 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 506 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 big endian byte ordering to the target system (i.e. host)
byte ordering.
Consequently, on bit 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 521 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 big endian byte ordering to the target system (i.e. host)
byte ordering.
Consequently, on bit 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 536 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 big 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 big endian byte ordered value from.Returns
The 16-bit value at the specified pointer address, if
necessary, byte reordered.
Defined at line 550 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 big 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 big endian byte ordered value from.Returns
The 32-bit value at the specified pointer address, if
necessary, byte reordered.
Defined at line 564 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 big 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 big endian byte ordered value from.Returns
The 64-bit value at the specified pointer address, if
necessary, byte reordered.
Defined at line 578 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 big endian byte ordering.
Parameters
p [in] A pointer address, potentially unaligned, to write the target system byte ordered 16-bit value to in big endian byte ordering.v [in] The 16-bit value to write, if necessary, byte order swapped.Defined at line 594 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 big endian byte ordering.
Parameters
p [in] A pointer address, potentially unaligned, to write the target system byte ordered 32-bit value to in big endian byte ordering.v [in] The 32-bit value to write, if necessary, byte order swapped.Defined at line 610 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 big endian byte ordering.
Parameters
p [in] A pointer address, potentially unaligned, to write the target system byte ordered 64-bit value to in big endian byte ordering.v [in] The 64-bit value to write, if necessary, byte order swapped.Defined at line 626 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 big 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 big 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 643 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 big 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 big 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 660 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 big 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 big 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 677 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 big 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 big 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 694 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 big 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 big 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 711 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 big 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 big 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 728 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 big 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 big 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 746 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 big 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 big 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 764 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 big 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 big 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 782 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveEncoding.h