Home
last modified time | relevance | path

Searched refs:upb_alloc (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Dupb.h75 struct upb_alloc;
76 typedef struct upb_alloc upb_alloc; typedef
81 typedef void *upb_alloc_func(upb_alloc *alloc, void *ptr, size_t oldsize,
84 struct upb_alloc { struct
88 UPB_INLINE void *upb_malloc(upb_alloc *alloc, size_t size) { in upb_malloc()
93 UPB_INLINE void *upb_realloc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_realloc()
99 UPB_INLINE void upb_free(upb_alloc *alloc, void *ptr) { in upb_free()
106 extern upb_alloc upb_alloc_global;
148 upb_alloc alloc;
156 upb_arena *upb_arena_init(void *mem, size_t n, upb_alloc *alloc);
[all …]
Dtable.int.h58 char *upb_strdup(const char *s, upb_alloc *a);
61 char *upb_strdup2(const char *s, size_t len, upb_alloc *a);
240 bool upb_inttable_init2(upb_inttable *table, upb_ctype_t ctype, upb_alloc *a);
242 size_t expected_size, upb_alloc *a);
243 void upb_inttable_uninit2(upb_inttable *table, upb_alloc *a);
244 void upb_strtable_uninit2(upb_strtable *table, upb_alloc *a);
284 upb_alloc *a);
286 upb_value val, upb_alloc *a);
320 upb_value *val, upb_alloc *alloc);
340 upb_alloc *a);
[all …]
Dtable.c38 char *upb_strdup(const char *s, upb_alloc *a) { in upb_strdup()
42 char *upb_strdup2(const char *s, size_t len, upb_alloc *a) { in upb_strdup2()
95 static bool init(upb_table *t, uint8_t size_lg2, upb_alloc *a) { in init()
113 static void uninit(upb_table *t, upb_alloc *a) { in uninit()
268 static upb_tabkey strcopy(lookupkey_t k2, upb_alloc *a) { in strcopy()
295 size_t expected_size, upb_alloc *a) { in upb_strtable_init2()
310 void upb_strtable_uninit2(upb_strtable *t, upb_alloc *a) { in upb_strtable_uninit2()
317 bool upb_strtable_resize(upb_strtable *t, size_t size_lg2, upb_alloc *a) { in upb_strtable_resize()
336 upb_value v, upb_alloc *a) { in upb_strtable_insert3()
364 upb_value *val, upb_alloc *alloc) { in upb_strtable_remove3()
[all …]
Dupb.c58 static void *upb_global_allocfunc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_global_allocfunc()
70 upb_alloc upb_alloc_global = {&upb_global_allocfunc};
136 static void *upb_arena_doalloc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_arena_doalloc()
144 upb_arena *arena_initslow(void *mem, size_t n, upb_alloc *alloc) { in arena_initslow()
169 upb_arena *upb_arena_init(void *mem, size_t n, upb_alloc *alloc) { in upb_arena_init()
Dupb.int.h16 upb_alloc *block_alloc;
Dupb.hpp55 upb_alloc *allocator() { return upb_arena_alloc(ptr_.get()); } in allocator()
Ddef.c838 upb_alloc *alloc; in upb_symtab_new()
906 upb_alloc *alloc; /* Alloc of file_arena, for tables. */
1347 upb_alloc *alloc = upb_arena_alloc(ctx->symtab->arena); in symtab_add()
1560 upb_alloc *alloc = ctx->alloc; in create_fielddef()
2063 upb_alloc *alloc = upb_arena_alloc(s->arena); in remove_filedef()
Dencode.c33 upb_alloc *alloc;
Dmsg.h467 upb_alloc *a = upb_arena_alloc(arena); in _upb_map_set()
/external/protobuf/php/ext/google/protobuf/
Dupb.c673 upb_alloc *alloc = upb_arena_alloc(arr->arena); in upb_array_grow()
1109 static str_t *newstr(upb_alloc *alloc, const char *data, size_t len) { in newstr()
1944 upb_alloc *alloc; /* Allocate defs here. */
1945 upb_alloc *tmp; /* Alloc for addtab and any other tmp data. */
2186 upb_alloc *alloc = ctx->alloc; in create_fielddef()
2546 upb_alloc *alloc = ctx->alloc; in build_filedef()
2677 upb_alloc *alloc = upb_arena_alloc(s->arena); in upb_symtab_addtotabs()
2747 upb_alloc *alloc; in upb_symtab_new()
2795 upb_alloc *alloc = upb_arena_alloc(s->arena); in upb_symtab_addfile()
2912 upb_alloc *alloc;
[all …]
Dupb.h236 struct upb_alloc;
237 typedef struct upb_alloc upb_alloc; typedef
242 typedef void *upb_alloc_func(upb_alloc *alloc, void *ptr, size_t oldsize,
245 struct upb_alloc { struct
249 UPB_INLINE void *upb_malloc(upb_alloc *alloc, size_t size) { in upb_malloc()
254 UPB_INLINE void *upb_realloc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_realloc()
260 UPB_INLINE void upb_free(upb_alloc *alloc, void *ptr) { in upb_free()
267 extern upb_alloc upb_alloc_global;
312 upb_arena *upb_arena_init(void *mem, size_t n, upb_alloc *alloc);
317 UPB_INLINE upb_alloc *upb_arena_alloc(upb_arena *a) { return (upb_alloc*)a; } in upb_arena_alloc()
[all …]
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h546 UPB_DECLARE_TYPE(upb::Allocator, upb_alloc)
551 typedef void *upb_alloc_func(upb_alloc *alloc, void *ptr, size_t oldsize,
565 struct upb_alloc { struct
570 UPB_INLINE void *upb_malloc(upb_alloc *alloc, size_t size) {
575 UPB_INLINE void *upb_realloc(upb_alloc *alloc, void *ptr, size_t oldsize,
581 UPB_INLINE void upb_free(upb_alloc *alloc, void *ptr) {
588 extern upb_alloc upb_alloc_global;
629 void upb_arena_init2(upb_arena *a, void *mem, size_t n, upb_alloc *alloc);
635 UPB_INLINE upb_alloc *upb_arena_alloc(upb_arena *a) { return (upb_alloc*)a; }
695 upb_alloc alloc;
[all …]
Dupb.c669 upb_alloc *alloc = upb_arena_alloc(arr->arena); in upb_array_grow()
3563 upb_alloc *alloc;
4855 upb_alloc *alloc = upb_arena_alloc(in->arena); in upb_msg_addunknown()
4893 upb_alloc *alloc = upb_arena_alloc(a); in upb_msg_new()
4962 upb_alloc *alloc = upb_arena_alloc(a); in upb_array_new()
5003 upb_alloc *alloc = upb_arena_alloc(arr->arena); in upb_array_set()
5085 upb_alloc *alloc = upb_arena_alloc(a); in upb_map_new()
5137 upb_alloc *a = upb_arena_alloc(map->arena); in upb_map_set()
5153 upb_alloc *a = upb_arena_alloc(map->arena); in upb_map_del()
5176 upb_mapiter *upb_mapiter_new(const upb_map *t, upb_alloc *a) { in upb_mapiter_new()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/upb/cmake/upb/json/
Dparser.c3299 upb_alloc *alloc = upb_arena_alloc(c->arena); in parsermethod_new()
3382 upb_alloc *alloc; in upb_json_codecache_new()
3405 upb_alloc *alloc = upb_arena_alloc(c->arena); in upb_json_codecache_get()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/json/
Dparser.rl2862 upb_alloc *alloc = upb_arena_alloc(c->arena);
2945 upb_alloc *alloc;
2968 upb_alloc *alloc = upb_arena_alloc(c->arena);