Searched refs:upb_malloc (Results 1 – 2 of 2) sorted by relevance
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | upb.c | 2932 trackedref *ret = upb_malloc(&upb_alloc_debugrefs, sizeof(*ret)); in trackedref_new() 3084 r->refs = upb_malloc(&upb_alloc_debugrefs, sizeof(*r->refs)); in trackinit() 3085 r->ref2s = upb_malloc(&upb_alloc_debugrefs, sizeof(*r->ref2s)); in trackinit() 4288 p = upb_malloc(a, n); in upb_strdup2() 4349 t->entries = upb_malloc(a, bytes); in init() 4515 char *str = upb_malloc(a, k2.str.len + sizeof(uint32_t) + 1); in strcopy() 4718 t->array = upb_malloc(a, array_bytes); in upb_inttable_sizedinit() 5290 mem_block *block = upb_malloc(a->block_alloc, block_size); in upb_arena_allocblock() 5385 cleanup_ent *ent = upb_malloc(&a->alloc, sizeof(cleanup_ent)); in upb_arena_addcleanup() 5456 return upb_malloc(&e->arena_.alloc, size); in upb_env_malloc()
|
D | upb.h | 503 UPB_INLINE void *upb_malloc(upb_alloc *alloc, size_t size) { function 528 return upb_malloc(&upb_alloc_global, size);
|