Bond 0.9
C++ Bond Runtime Library API Documentation
|
These functions provide functionality for manipulating byte order. More...
Functions | |
void | Bond::SwapBytes (uint8_t &a, uint8_t &b) |
Swaps the value of two bytes. More... | |
void | Bond::ReverseByteOrder16 (uint8_t value[2]) |
Reverses the order of two bytes in place. More... | |
void | Bond::ReverseByteOrder32 (uint8_t value[4]) |
Reverses the order of four bytes in place. More... | |
void | Bond::ReverseByteOrder64 (uint8_t value[8]) |
Reverses the order of eight bytes in place. More... | |
Value16 | Bond::ReverseByteOrder16 (Value16 value) |
Returns a 16 bit value with its byte order reversed. More... | |
Value32 | Bond::ReverseByteOrder32 (Value32 value) |
Returns a 32 bit value with its byte order reversed. More... | |
Value64 | Bond::ReverseByteOrder64 (Value64 value) |
Returns a 64 bit value with its byte order reversed. More... | |
void | Bond::ConvertBigEndian16 (void *value) |
Converts the byte order of a 16 bit value from native byte order to big endian or vice versa in place. More... | |
Value16 | Bond::ConvertBigEndian16 (Value16 value) |
Converts the byte order of a 16 bit value from native byte order to big endian or vice versa and returns the new value. More... | |
int16_t | Bond::ConvertBigEndianI16 (int16_t value) |
Converts the byte order of an int16_t from native byte order to big endian or vice versa and returns the new value. More... | |
uint16_t | Bond::ConvertBigEndianU16 (uint16_t value) |
Converts the byte order of an uint16_t from native byte order to big endian or vice versa and returns the new value. More... | |
void | Bond::ConvertBigEndian32 (void *value) |
Converts the byte order of a 32 bit value from native byte order to big endian or vice versa in place. More... | |
Value32 | Bond::ConvertBigEndian32 (Value32 value) |
Converts the byte order of a 32 bit value from native byte order to big endian or vice versa and returns the new value. More... | |
int32_t | Bond::ConvertBigEndianI32 (int32_t value) |
Converts the byte order of an int32_t from native byte order to big endian or vice versa and returns the new value. More... | |
uint32_t | Bond::ConvertBigEndianU32 (uint32_t value) |
Converts the byte order of an uint32_t from native byte order to big endian or vice versa and returns the new value. More... | |
float | Bond::ConvertBigEndianF32 (float value) |
Converts the byte order of a float from native byte order to big endian or vice versa and returns the new value. More... | |
void | Bond::ConvertBigEndian64 (void *value) |
Converts the byte order of a 64 bit value from native byte order to big endian or vice versa and returns the new value. More... | |
Value64 | Bond::ConvertBigEndian64 (Value64 value) |
Converts the byte order of a 64 bit value from native byte order to big endian or vice versa and returns the new value. More... | |
int64_t | Bond::ConvertBigEndianI64 (int64_t value) |
Converts the byte order of an int64_t from native byte order to big endian or vice versa and returns the new value. More... | |
uint64_t | Bond::ConvertBigEndianU64 (uint64_t value) |
Converts the byte order of an uint64_t from native byte order to big endian or vice versa and returns the new value. More... | |
double | Bond::ConvertBigEndianF64 (double value) |
Converts the byte order of a double from native byte order to big endian or vice versa and returns the new value. More... | |
These functions provide functionality for manipulating byte order.
Converts the byte order of a 16 bit value from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of a 16 bit value from native byte order to big endian or vice versa in place.
Converts the byte order of a 32 bit value from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of a 32 bit value from native byte order to big endian or vice versa in place.
Converts the byte order of a 64 bit value from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of a 64 bit value from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of a float from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of a double from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of an int16_t from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of an int32_t from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of an int64_t from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of an uint16_t from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of an uint32_t from native byte order to big endian or vice versa and returns the new value.
|
inline |
Converts the byte order of an uint64_t from native byte order to big endian or vice versa and returns the new value.
|
inline |
Reverses the order of two bytes in place.
Returns a 16 bit value with its byte order reversed.
|
inline |
Reverses the order of four bytes in place.
Returns a 32 bit value with its byte order reversed.
|
inline |
Reverses the order of eight bytes in place.
Returns a 64 bit value with its byte order reversed.
|
inline |
Swaps the value of two bytes.