WPILibC++ 2023.4.3-108-ge5452e3
mpack Namespace Reference

Functions

void mpack_write_str (mpack_writer_t *writer, std::string_view str)
 
void mpack_write_bytes (mpack_writer_t *writer, std::span< const uint8_t > data)
 
void mpack_reader_init_data (mpack_reader_t *reader, std::span< const uint8_t > data)
 
mpack_error_t mpack_expect_str (mpack_reader_t *reader, std::string *out, uint32_t maxLen=1024)
 
mpack_error_t mpack_read_str (mpack_reader_t *reader, mpack_tag_t *tag, std::string *out, uint32_t maxLen=1024)
 
C++ write overloads
MPACK_INLINE void mpack_write (mpack_writer_t *writer, int8_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, int16_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, int32_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, int64_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, uint8_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, uint16_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, uint32_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, uint64_t value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, bool value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, float value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, double value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, char *value)
 
MPACK_INLINE void mpack_write (mpack_writer_t *writer, const char *value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, int8_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, int16_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, int32_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, int64_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, uint8_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, uint16_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, uint32_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, uint64_t value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, bool value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, float value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, double value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, char *value)
 
MPACK_INLINE void mpack_write_kv (mpack_writer_t *writer, const char *key, const char *value)
 

Function Documentation

◆ mpack_expect_str()

mpack_error_t mpack::mpack_expect_str ( mpack_reader_t reader,
std::string *  out,
uint32_t  maxLen = 1024 
)

◆ mpack_read_str()

mpack_error_t mpack::mpack_read_str ( mpack_reader_t reader,
mpack_tag_t tag,
std::string *  out,
uint32_t  maxLen = 1024 
)

◆ mpack_reader_init_data()

void mpack::mpack_reader_init_data ( mpack_reader_t reader,
std::span< const uint8_t >  data 
)
inline

◆ mpack_write() [1/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
bool  value 
)

◆ mpack_write() [2/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
char *  value 
)

◆ mpack_write() [3/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
const char *  value 
)

◆ mpack_write() [4/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
double  value 
)

◆ mpack_write() [5/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
float  value 
)

◆ mpack_write() [6/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
int16_t  value 
)

◆ mpack_write() [7/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
int32_t  value 
)

◆ mpack_write() [8/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
int64_t  value 
)

◆ mpack_write() [9/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
int8_t  value 
)

◆ mpack_write() [10/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
uint16_t  value 
)

◆ mpack_write() [11/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
uint32_t  value 
)

◆ mpack_write() [12/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
uint64_t  value 
)

◆ mpack_write() [13/13]

MPACK_INLINE void mpack::mpack_write ( mpack_writer_t writer,
uint8_t  value 
)

◆ mpack_write_bytes()

void mpack::mpack_write_bytes ( mpack_writer_t writer,
std::span< const uint8_t >  data 
)
inline

◆ mpack_write_kv() [1/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
bool  value 
)

◆ mpack_write_kv() [2/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
char *  value 
)

◆ mpack_write_kv() [3/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
const char *  value 
)

◆ mpack_write_kv() [4/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
double  value 
)

◆ mpack_write_kv() [5/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
float  value 
)

◆ mpack_write_kv() [6/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
int16_t  value 
)

◆ mpack_write_kv() [7/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
int32_t  value 
)

◆ mpack_write_kv() [8/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
int64_t  value 
)

◆ mpack_write_kv() [9/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
int8_t  value 
)

◆ mpack_write_kv() [10/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
uint16_t  value 
)

◆ mpack_write_kv() [11/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
uint32_t  value 
)

◆ mpack_write_kv() [12/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
uint64_t  value 
)

◆ mpack_write_kv() [13/13]

MPACK_INLINE void mpack::mpack_write_kv ( mpack_writer_t writer,
const char *  key,
uint8_t  value 
)

◆ mpack_write_str()

void mpack::mpack_write_str ( mpack_writer_t writer,
std::string_view  str 
)
inline