This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/mpkutil/pack.h
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

40 lines
549 B
C

#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <msgpack.h>
#include "util/math/vector.h"
void
mpkutil_pack_bool(
msgpack_packer* packer,
bool v
);
void
mpkutil_pack_str(
msgpack_packer* packer,
const char* str /* NULL-terminated */
);
void
mpkutil_pack_strn(
msgpack_packer* packer,
const char* str,
size_t len
);
void
mpkutil_pack_vec2(
msgpack_packer* packer,
const vec2_t* v
);
void
mpkutil_pack_vec4(
msgpack_packer* packer,
const vec4_t* v
);