Home
last modified time | relevance | path

Searched refs:strbuf_t (Results 1 – 3 of 3) sorted by relevance

/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dstrbuf.h42 } strbuf_t; typedef
52 extern strbuf_t *strbuf_new(int len);
53 extern void strbuf_init(strbuf_t *s, int len);
57 extern void strbuf_free(strbuf_t *s);
62 static int strbuf_empty_length(strbuf_t *s);
63 static int strbuf_length(strbuf_t *s);
66 static char *strbuf_empty_ptr(strbuf_t *s);
75 static void strbuf_ensure_null(strbuf_t *s);
78 static inline void strbuf_reset(strbuf_t *s) in strbuf_reset()
83 static inline int strbuf_allocated(strbuf_t *s) in strbuf_allocated()
[all …]
H A Dstrbuf.c44 void strbuf_init(strbuf_t *s, int len) in strbuf_init()
68 strbuf_t *strbuf_new(int len) in strbuf_new()
70 strbuf_t *s; in strbuf_new()
72 s = malloc(sizeof(strbuf_t)); in strbuf_new()
84 void strbuf_set_increment(strbuf_t *s, int increment) in strbuf_set_increment()
94 static inline void debug_stats(strbuf_t *s) in debug_stats()
104 void strbuf_free(strbuf_t *s) in strbuf_free()
116 char *strbuf_free_to_string(strbuf_t *s, int *len) in strbuf_free_to_string()
134 static int calculate_new_size(strbuf_t *s, int len) in calculate_new_size()
164 void strbuf_resize(strbuf_t *s, int len) in strbuf_resize()
[all …]
H A Dlua_cjson.c120 strbuf_t encode_buf;
137 strbuf_t *tmp; /* Temporary storage for strings */
463 static void json_append_string(lua_State *l, strbuf_t *json, int lindex) in json_append_string()
537 int current_depth, strbuf_t *json) in json_check_encode_depth()
560 int current_depth, strbuf_t *json);
567 strbuf_t *json, int array_length) in json_append_array()
589 strbuf_t *json, int lindex) in json_append_number()
619 int current_depth, strbuf_t *json) in json_append_object()
661 int current_depth, strbuf_t *json) in json_append_data()
706 strbuf_t local_encode_buf; in json_encode()
[all …]