Bit Serializer Class.
More...
#include <bitserializer.h>
◆ BitSerializer() [1/2]
| a_util::memory::BitSerializer::BitSerializer |
( |
void * | data, |
|
|
size_t | data_size ) |
|
inline |
◆ BitSerializer() [2/2]
| a_util::memory::BitSerializer::BitSerializer |
( |
| ) |
|
|
inline |
◆ read()
Read value from bitfield. Value can be of type tFloat or an unsigned or signed integer.
....|...*****|********|**......|.... Buffer (index 0 on the right end side) |_______________| bit_length ^ | start_bit
- Parameters
-
| [in] | start_bit | Bit position to start reading from. The least significant bit has the index 0. |
| [in] | bit_length | Number of bits to read. |
| [out] | value | Pointer to the variable to store the read value in. |
| [in] | endianess | Parameter describing the endianess of the bitfield to read from. |
- Returns
- Returns a standard result code.
◆ write()
Write value to bitfield. Value can be of type tFloat or an unsigned or signed integer.
....|...*****|********|**......|.... Buffer (index 0 on the right end side) |_______________| bit_length ^ | start_bit
- Parameters
-
| [in] | start_bit | Bit position to start writing to. The least significant bit has the index 0. |
| [in] | bit_length | Number of bits to write. |
| [out] | value | Value to write to the bitfield. |
| [in] | endianess | Parameter describing the endianess of the bitfield to write to. |
- Returns
- Returns a standard result code.
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/codec/bitserializer.h