#include <sajson.h>
Public Member Functions | |
dynamic_allocation (size_t initial_ast_capacity_=0, size_t initial_stack_capacity_=0) | |
Private Attributes | |
size_t | initial_ast_capacity |
size_t | initial_stack_capacity |
Allocation policy that uses dynamically-growing buffers for both the parse stack and the AST. This allocation policy minimizes peak memory usage at the cost of some allocation and copying churn.
|
inline |
Creates a dynamic_allocation policy with the given initial AST and stack buffer sizes.
|
private |
|
private |