-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
Builder’s custom init function provides mechanism to provide custom allocator to flatcc builder.
The flatcc_builder_alloc_fun contains alloc and free calls. This allows multiple flatcc builders in a project to have different alloc and free functions. This just requires a new function to be sent during init.
Any reason why the same was functionality was not extended to flatcc_builder_emit_fun?
Theoretically, flatcc_builder_custom_init and emitter.c can be modified to make it behave similar to alloc_fun. But does this cause any known issues?
Similarly refmap and json_printer don’t expose this functionality.
Metadata
Metadata
Assignees
Labels
No labels