This pure static class provides operations for byte converting from little to big endian and vice versa.
More...
#include <ByteConverter.hpp>
|
template<class T > |
static void | Swap (T &value) |
| Swaps the bytes of the as argument passed value of any primitive type. More...
|
|
static void | Swap (byte *pBuffer, size_t size) |
| Swaps the bytes of the as argument buffer of the given size. More...
|
|
template<class T > |
static void | ReverseCopy (const T &source, T &target) |
| Copies the reverted bytes of the source argument to the target argument. More...
|
|
static void | ReverseCopy (const byte *pSource, byte *pTarget, size_t size) |
| Copies the reverted bytes of the source argument to the target argument. More...
|
|
This pure static class provides operations for byte converting from little to big endian and vice versa.
◆ ReverseCopy() [1/2]
void Arp::Base::Core::ByteConverter::ReverseCopy |
( |
const byte * |
pSource, |
|
|
byte * |
pTarget, |
|
|
size_t |
size |
|
) |
| |
|
static |
Copies the reverted bytes of the source argument to the target argument.
- Parameters
-
pSource | The source buffer to revert and copy. |
pTarget | The target buffer to copy the reverted bytes to. |
size | The size of the source and target buffers. |
◆ ReverseCopy() [2/2]
template<class T >
void Arp::Base::Core::ByteConverter::ReverseCopy |
( |
const T & |
source, |
|
|
T & |
target |
|
) |
| |
|
inlinestatic |
Copies the reverted bytes of the source argument to the target argument.
- Parameters
-
source | The source value to revert and copy. |
target | The target value to copy the reverted value to. |
◆ Swap() [1/2]
void Arp::Base::Core::ByteConverter::Swap |
( |
byte * |
pBuffer, |
|
|
size_t |
size |
|
) |
| |
|
static |
Swaps the bytes of the as argument buffer of the given size.
- Parameters
-
pBuffer | The buffer to swap the bytes from. |
size | The size of the as argument passed buffer. |
◆ Swap() [2/2]
template<class T >
void Arp::Base::Core::ByteConverter::Swap |
( |
T & |
value | ) |
|
|
inlinestatic |
Swaps the bytes of the as argument passed value of any primitive type.
- Parameters
-
- Template Parameters
-
T | The type of the as argument passed value (should be a primitive type). |
The documentation for this class was generated from the following files: