asmjit::String Class Reference [¶]

A simple non-reference counted string that uses small string optimization (SSO).
This string has 3 allocation possibilities:
- Small - embedded buffer is used for up to
kSSOCapacity
characters. This should handle most small strings and thus avoid dynamic memory allocation for most use-cases. - Large - string that doesn't fit into an embedded buffer (or string that was truncated from a larger buffer) and is owned by AsmJit. When you destroy the string AsmJit would automatically release the large buffer.
- External - like Large (2), however, the large buffer is not owned by AsmJit and won't be released when the string is destroyed or reallocated. This is mostly useful for working with larger temporary strings allocated on stack or with immutable strings.