RetroArch
|
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <retro_endianness.h>
#include "rmsgpack.h"
Macros | |
#define | _MPF_FIXMAP 0x80 |
#define | _MPF_MAP16 0xde |
#define | _MPF_MAP32 0xdf |
#define | _MPF_FIXARRAY 0x90 |
#define | _MPF_ARRAY16 0xdc |
#define | _MPF_ARRAY32 0xdd |
#define | _MPF_FIXSTR 0xa0 |
#define | _MPF_STR8 0xd9 |
#define | _MPF_STR16 0xda |
#define | _MPF_STR32 0xdb |
#define | _MPF_BIN8 0xc4 |
#define | _MPF_BIN16 0xc5 |
#define | _MPF_BIN32 0xc6 |
#define | _MPF_FALSE 0xc2 |
#define | _MPF_TRUE 0xc3 |
#define | _MPF_INT8 0xd0 |
#define | _MPF_INT16 0xd1 |
#define | _MPF_INT32 0xd2 |
#define | _MPF_INT64 0xd3 |
#define | _MPF_UINT8 0xcc |
#define | _MPF_UINT16 0xcd |
#define | _MPF_UINT32 0xce |
#define | _MPF_UINT64 0xcf |
#define | _MPF_NIL 0xc0 |
Functions | |
int | rmsgpack_write_array_header (RFILE *fd, uint32_t size) |
int | rmsgpack_write_map_header (RFILE *fd, uint32_t size) |
int | rmsgpack_write_string (RFILE *fd, const char *s, uint32_t len) |
int | rmsgpack_write_bin (RFILE *fd, const void *s, uint32_t len) |
int | rmsgpack_write_nil (RFILE *fd) |
int | rmsgpack_write_bool (RFILE *fd, int value) |
int | rmsgpack_write_int (RFILE *fd, int64_t value) |
int | rmsgpack_write_uint (RFILE *fd, uint64_t value) |
static int | read_uint (RFILE *fd, uint64_t *out, size_t size) |
static int | read_int (RFILE *fd, int64_t *out, size_t size) |
static int | read_buff (RFILE *fd, size_t size, char **pbuff, uint64_t *len) |
static int | read_map (RFILE *fd, uint32_t len, struct rmsgpack_read_callbacks *callbacks, void *data) |
static int | read_array (RFILE *fd, uint32_t len, struct rmsgpack_read_callbacks *callbacks, void *data) |
int | rmsgpack_read (RFILE *fd, struct rmsgpack_read_callbacks *callbacks, void *data) |
#define _MPF_ARRAY16 0xdc |
#define _MPF_ARRAY32 0xdd |
#define _MPF_BIN16 0xc5 |
#define _MPF_BIN32 0xc6 |
#define _MPF_BIN8 0xc4 |
#define _MPF_FALSE 0xc2 |
#define _MPF_FIXARRAY 0x90 |
#define _MPF_FIXMAP 0x80 |
#define _MPF_FIXSTR 0xa0 |
#define _MPF_INT16 0xd1 |
#define _MPF_INT32 0xd2 |
#define _MPF_INT64 0xd3 |
#define _MPF_INT8 0xd0 |
#define _MPF_MAP16 0xde |
#define _MPF_MAP32 0xdf |
#define _MPF_NIL 0xc0 |
#define _MPF_STR16 0xda |
#define _MPF_STR32 0xdb |
#define _MPF_STR8 0xd9 |
#define _MPF_TRUE 0xc3 |
#define _MPF_UINT16 0xcd |
#define _MPF_UINT32 0xce |
#define _MPF_UINT64 0xcf |
#define _MPF_UINT8 0xcc |
|
static |
|
static |
int rmsgpack_read | ( | RFILE * | fd, |
struct rmsgpack_read_callbacks * | callbacks, | ||
void * | data | ||
) |
int rmsgpack_write_bool | ( | RFILE * | fd, |
int | value | ||
) |
int rmsgpack_write_nil | ( | RFILE * | fd | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |