diff options
-rw-r--r-- | upb/upb.c | 5 | ||||
-rw-r--r-- | upb/upb.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -280,6 +280,11 @@ void upb_env_init(upb_env *e) { upb_env_initonly(e); } +void upb_env_init2(upb_env *e, void *mem, size_t n, upb_alloc *alloc) { + upb_arena_init2(&e->arena_, mem, n, alloc); + upb_env_initonly(e); +} + void upb_env_uninit(upb_env *e) { upb_arena_uninit(&e->arena_); } @@ -603,6 +603,7 @@ typedef bool upb_error_func(void *ud, const upb_status *status); UPB_BEGIN_EXTERN_C void upb_env_init(upb_env *e); +void upb_env_init2(upb_env *e, void *mem, size_t n, upb_alloc *alloc); void upb_env_uninit(upb_env *e); void upb_env_initonly(upb_env *e); |