#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
|
void | write_u16_be (uint8_t *ptr, size_t offset, uint16_t value) |
|
void | write_u32_be (uint8_t *ptr, size_t offset, uint32_t value) |
|
void | write_u64_be (uint8_t *ptr, size_t offset, uint64_t value) |
|
void | write_u16_le (uint8_t *ptr, size_t offset, uint16_t value) |
|
void | write_u32_le (uint8_t *ptr, size_t offset, uint32_t value) |
|
void | write_u64_le (uint8_t *ptr, size_t offset, uint64_t value) |
|
◆ write_u16_be()
◆ write_u16_le()
Write 16-bit unsigned integer value as Little Endian.
- Parameters
-
[out] | ptr | Pointer to output byte buffer. |
[in] | offset | Offset in the output byte buffer. |
[in] | value | 16-bit unsigned integer to write in output byte buffer as Little Endian. |
Definition at line 46 of file write.c.
◆ write_u32_be()
void write_u32_be |
( |
uint8_t * |
ptr, |
|
|
size_t |
offset, |
|
|
uint32_t |
value |
|
) |
| |
Write 32-bit unsigned integer value as Big Endian.
- Parameters
-
[out] | ptr | Pointer to output byte buffer. |
[in] | offset | Offset in the output byte buffer. |
[in] | value | 32-bit unsigned integer to write in output byte buffer as Big Endian. |
Definition at line 26 of file write.c.
◆ write_u32_le()
void write_u32_le |
( |
uint8_t * |
ptr, |
|
|
size_t |
offset, |
|
|
uint32_t |
value |
|
) |
| |
Write 32-bit unsigned integer value as Little Endian.
- Parameters
-
[out] | ptr | Pointer to output byte buffer. |
[in] | offset | Offset in the output byte buffer. |
[in] | value | 32-bit unsigned integer to write in output byte buffer as Little Endian. |
Definition at line 52 of file write.c.
◆ write_u64_be()
void write_u64_be |
( |
uint8_t * |
ptr, |
|
|
size_t |
offset, |
|
|
uint64_t |
value |
|
) |
| |
Write 64-bit unsigned integer value as Big Endian.
- Parameters
-
[out] | ptr | Pointer to output byte buffer. |
[in] | offset | Offset in the output byte buffer. |
[in] | value | 64-bit unsigned integer to write in output byte buffer as Big Endian. |
Definition at line 34 of file write.c.
◆ write_u64_le()
void write_u64_le |
( |
uint8_t * |
ptr, |
|
|
size_t |
offset, |
|
|
uint64_t |
value |
|
) |
| |
Write 64-bit unsigned integer value as Little Endian.
- Parameters
-
[out] | ptr | Pointer to output byte buffer. |
[in] | offset | Offset in the output byte buffer. |
[in] | value | 64-bit unsigned integer to write in output byte buffer as Little Endian. |
Definition at line 60 of file write.c.