sajson
High-Performance JSON Parser
Public Member Functions | List of all members
sajson::dynamic_allocation Class Reference

Allocation policy that uses dynamically-growing buffers for both the parse stack and the AST. More...

#include <sajson.h>

Public Member Functions

 dynamic_allocation (size_t initial_ast_capacity=0, size_t initial_stack_capacity=0)
 Creates a dynamic_allocation policy with the given initial AST and stack buffer sizes. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

sajson::dynamic_allocation::dynamic_allocation ( size_t  initial_ast_capacity = 0,
size_t  initial_stack_capacity = 0 
)
inline

Creates a dynamic_allocation policy with the given initial AST and stack buffer sizes.


The documentation for this class was generated from the following file: