Function alloc_arena
Synopsis
#include <src/c4/yml/tree.hpp>
substr alloc_arena(size_t sz)
Description
grow the tree's string arena by the given size and return a substr of the added portion
- Note
- Growing the arena may cause relocation of the entire existing arena, and thus change the contents of individual nodes.
Source
Lines 968-974 in src/c4/yml/tree.hpp.
substr alloc_arena(size_t sz)
{
if(sz >= arena_slack())
_grow_arena(sz - arena_slack());
substr s = _request_span(sz);
return s;
}