puzzlebox
Loading...
Searching...
No Matches
mpack

Mpack extensions specific to this project. More...

Detailed Description

The mpack folder under lib/ contains a CMakeLists.txt for integrating the mapck library with CMake, and includes an extension in the form of an additional utility function.

Functions

size_t mpack_read_remaining_bytes (mpack_reader_t *reader, char *p, size_t count)
 Read remaining bytes in reader without opening a tag first.
 

Function Documentation

◆ mpack_read_remaining_bytes()

size_t mpack_read_remaining_bytes ( mpack_reader_t * reader,
char * p,
size_t count )
Parameters
readerPointer to mpack reader object
pPointer to write data to
countMaximum number of bytes to read

This function reads up to the amount of bytes specified in count, or less if there is less remaining data in the buffer. If count is equal to 0, all remaining data in the buffer is read.

Returns
Amount of bytes read