reset() to reuse the buffer.ddn.data.xml.internal.arena
Internal: simple bump allocator used as an optional per-document arena.
The arena is intended to reduce GC churn when many small strings/nodes are allocated during parsing.
struct XmlArena
Types 1
structXmlArena
A simple growable bump allocator.
Note
This allocator never frees individual allocations. Call
Fields
private char[][] _chunksprivate size_t _usedMethods
XmlArena withCapacity(size_t initialCapacity = 4096) @safeCreates an arena with an initial capacity.string assumeImmutable(char[] mem) @trusted