Dataflow Runtime API
3.1.1.0
|
Contains some helpful converting tools. More...
#include <Imt.Base.Core.Util/ByteWordUtil.h>
Static Public Member Functions | |
static uint32_t | makeDoubleWord (const uint16_t lowerWord, const uint16_t upperWord) |
Creates a doubleWord containing the low and high word. More... | |
static uint64_t | make8ByteWord (const uint32_t lowerPart, const uint32_t upperPart) |
Creates a 8 byte Word containing the low and high 4 byte word. More... | |
static uint16_t | makeWord (const uint8_t lowerByte, const uint8_t upperByte) |
Creates a word containing the low and high byte. More... | |
static uint8_t | lowByte (const uint16_t data) |
Returns the low byte of a word. More... | |
static uint8_t | highByte (const uint16_t data) |
Returns the high byte of a word. More... | |
static uint8_t | highByteOfHighWord (const uint32_t data) |
Returns the high byte of the high word of a double word. More... | |
static uint8_t | lowByteOfHighWord (const uint32_t data) |
Returns the low byte of the high word of a double word. More... | |
static uint8_t | highByteOfLowWord (const uint32_t data) |
Returns the high byte of the low word of a double word. More... | |
static uint8_t | lowByteOfLowWord (const uint32_t data) |
Returns the low byte of the low word of a double word. More... | |
static uint16_t | highWordOfDoubleWord (const uint32_t data) |
Returns the high word of a double word. More... | |
static uint16_t | lowWordOfDoubleWord (const uint32_t data) |
Returns the low word of a double word. More... | |
static uint32_t | highPartOf8ByteWord (const uint64_t data) |
Returns the high part of an 8 byte word. More... | |
static uint32_t | lowPartOf8ByteWord (const uint64_t data) |
Returns the low part of an 8 byte word. More... | |
static void | write (uint8_t *const pBuffer, const uint64_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const int64_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const uint32_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const int32_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const uint16_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const int16_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const float32_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const float64_t data) |
Writing into a byte buffer. More... | |
static void | write (uint8_t *const pBuffer, const bool data) |
Writing into a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, uint64_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, int64_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, uint32_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, int32_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, uint16_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, int16_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, float32_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, float64_t &data) |
Reading from a byte buffer. More... | |
static void | read (const uint8_t *const pBuffer, bool &data) |
Reading from a byte buffer. More... | |
Contains some helpful converting tools.
Is purely static.
Returns the high byte of a word.
data | The word from which the high byte has to be segregated. |
|
static |
Returns the high byte of the high word of a double word.
A byte is a uin8_t.
data | The data from which the high byte of the high word will be extracted. |
Returns the high byte of the low word of a double word.
A byte is a uin8_t.
data | The data from which the high byte of the low word will be extracted. |
|
static |
Returns the high part of an 8 byte word.
data | The data from which the high part will be extracted. |
|
static |
Returns the high word of a double word.
A word is a uin16_t.
data | The data from which the high word of the double word will be extracted. |
Returns the low byte of a word.
data | The word from which the low byte has to be segregated. |
Returns the low byte of the high word of a double word.
A byte is a uin8_t.
data | The data from which the low byte of the high word will be extracted. |
Returns the low byte of the low word of a double word.
A byte is a uin8_t.
data | The data from which the low byte of the low word will be extracted. |
|
static |
Returns the low part of an 8 byte word.
data | The data from which the low part will be extracted. |
|
static |
Returns the low word of a double word.
A word is a uin16_t.
data | The data from which the low word of the double word will be extracted. |
|
static |
Creates a 8 byte Word containing the low and high 4 byte word.
lowerPart | Low part of the word to create. |
upperPart | High part of the word to create. |
|
static |
Creates a doubleWord containing the low and high word.
lowerWord | Low word of the double word to create. |
upperWord | High word of the double word to create. |
|
static |
Creates a word containing the low and high byte.
lowerByte | Low byte of the created word. |
upperByte | High byte of the created word. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Reading from a byte buffer.
A number of bytes based on the size of the target data is read to the buffer.
pBuffer | The buffer from which the data is read. |
data | The read data is written to data. |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |
|
static |
Writing into a byte buffer.
A number of bytes based on the size of the passed data is written to the buffer.
pBuffer | The buffer to which the data is written. |
data | The data to write |