AsmJit
Low-Latency Machine Code Generation
A string template that can be zone allocated.
Helps with creating strings that can be either statically allocated if they are small, or externally allocated in case their size exceeds the limit. The N
represents the size of the whole ZoneString
structure, based on that size the maximum size of the internal buffer is determined.
Tests whether the string is empty.
Returns the string data.
Returns the string size.
Tests whether the string is embedded (e.g. no dynamically allocated).
Copies a new data
of the given size
to the string.
If the size
exceeds the internal buffer the given zone
will be used to duplicate the data, otherwise the internal buffer will be used as a storage.