Lines Matching refs:mp_buf

93 typedef struct mp_buf {  struct
96 } mp_buf; argument
107 mp_buf *mp_buf_new(lua_State *L) { in mp_buf_new()
108 mp_buf *buf = NULL; in mp_buf_new()
111 buf = (mp_buf*)mp_realloc(L, NULL, 0, sizeof(*buf)); in mp_buf_new()
118 void mp_buf_append(lua_State *L, mp_buf *buf, const unsigned char *s, size_t len) { in mp_buf_append()
130 void mp_buf_free(lua_State *L, mp_buf *buf) { in mp_buf_free()
174 void mp_encode_bytes(lua_State *L, mp_buf *buf, const unsigned char *s, size_t len) { in mp_encode_bytes()
203 void mp_encode_double(lua_State *L, mp_buf *buf, double d) { in mp_encode_double()
221 void mp_encode_int(lua_State *L, mp_buf *buf, int64_t n) { in mp_encode_int()
293 void mp_encode_array(lua_State *L, mp_buf *buf, int64_t n) { in mp_encode_array()
316 void mp_encode_map(lua_State *L, mp_buf *buf, int64_t n) { in mp_encode_map()
341 void mp_encode_lua_string(lua_State *L, mp_buf *buf) { in mp_encode_lua_string()
349 void mp_encode_lua_bool(lua_State *L, mp_buf *buf) { in mp_encode_lua_bool()
355 void mp_encode_lua_integer(lua_State *L, mp_buf *buf) { in mp_encode_lua_integer()
367 void mp_encode_lua_number(lua_State *L, mp_buf *buf) { in mp_encode_lua_number()
377 void mp_encode_lua_type(lua_State *L, mp_buf *buf, int level);
380 void mp_encode_lua_table_as_array(lua_State *L, mp_buf *buf, int level) { in mp_encode_lua_table_as_array()
397 void mp_encode_lua_table_as_map(lua_State *L, mp_buf *buf, int level) { in mp_encode_lua_table_as_map()
468 void mp_encode_lua_table(lua_State *L, mp_buf *buf, int level) { in mp_encode_lua_table()
475 void mp_encode_lua_null(lua_State *L, mp_buf *buf) { in mp_encode_lua_null()
482 void mp_encode_lua_type(lua_State *L, mp_buf *buf, int level) { in mp_encode_lua_type()
515 mp_buf *buf; in mp_pack()