#include <sajson.h>
Public Member Functions | |
single_allocation () | |
single_allocation (size_t *existing_buffer_, size_t size_in_words) | |
template<size_t N> | |
single_allocation (size_t(&existing_buffer_)[N]) | |
Private Attributes | |
size_t * | existing_buffer |
size_t | existing_buffer_size |
bool | has_existing_buffer |
Allocation policy that allocates one large buffer guaranteed to hold the resulting AST. This allocation policy is the fastest since it requires no conditionals to see if more memory must be allocated.
|
inline |
|
inline |
|
inlineexplicit |
Convenience wrapper for single_allocation(size_t*, size_t) that automatically infers the length of a given array.
|
private |
|
private |
|
private |