49int32_t
nros_cdr_write_u8(uint8_t** ptr,
const uint8_t* end,
const uint8_t* origin, uint8_t value);
61int32_t
nros_cdr_write_i8(uint8_t** ptr,
const uint8_t* end,
const uint8_t* origin, int8_t value);
86int32_t
nros_cdr_write_i16(uint8_t** ptr,
const uint8_t* end,
const uint8_t* origin, int16_t value);
195 const char* data,
size_t len);
359 char* value,
size_t max_len);
int32_t nros_cdr_write_u32(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint32_t value)
Write a u32 value to the buffer (with alignment).
int32_t nros_cdr_write_u64(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint64_t value)
Write a u64 value to the buffer (with alignment).
int32_t nros_cdr_write_string_n(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, const char *data, size_t len)
Write a string from a pointer+length pair (not null-terminated).
int32_t nros_cdr_read_f64(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, double *value)
Read a f64 value from the buffer.
int32_t nros_cdr_read_string(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, char *value, size_t max_len)
Read a string from the buffer into a fixed-size buffer.
int32_t nros_cdr_read_u16(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint16_t *value)
Read a u16 value from the buffer (with alignment).
int32_t nros_cdr_read_i16(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int16_t *value)
Read an i16 value from the buffer.
int32_t nros_cdr_write_bool(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, bool value)
Write a boolean value to the buffer.
int32_t nros_cdr_read_i8(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int8_t *value)
Read an i8 value from the buffer.
int32_t nros_cdr_read_i64(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int64_t *value)
Read an i64 value from the buffer.
int32_t nros_cdr_read_i32(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int32_t *value)
Read an i32 value from the buffer.
int32_t nros_cdr_write_f32(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, float value)
Write a f32 value to the buffer (with alignment).
int32_t nros_cdr_read_f32(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, float *value)
Read a f32 value from the buffer.
int32_t nros_cdr_write_u8(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint8_t value)
Write a u8 value to the buffer.
int32_t nros_cdr_write_i64(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int64_t value)
Write an i64 value to the buffer.
int32_t nros_cdr_read_u8(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint8_t *value)
Read a u8 value from the buffer.
int32_t nros_cdr_write_string(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, const char *value)
Write a string to the buffer (length-prefixed).
int32_t nros_cdr_read_u64(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint64_t *value)
Read a u64 value from the buffer (with alignment).
int32_t nros_cdr_write_i32(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int32_t value)
Write an i32 value to the buffer.
int32_t nros_cdr_write_i16(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int16_t value)
Write an i16 value to the buffer.
int32_t nros_cdr_write_i8(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, int8_t value)
Write an i8 value to the buffer.
int32_t nros_cdr_read_bool(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, bool *value)
Read a boolean value from the buffer.
int32_t nros_cdr_read_u32(const uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint32_t *value)
Read a u32 value from the buffer (with alignment).
int32_t nros_cdr_write_u16(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, uint16_t value)
Write a u16 value to the buffer (with alignment).
int32_t nros_cdr_write_f64(uint8_t **ptr, const uint8_t *end, const uint8_t *origin, double value)
Write a f64 value to the buffer (with alignment).
Shared types and constants for the nros C API.
#define NROS_PUBLIC
Definition visibility.h:33