AsmJit
Low-Latency Machine Code Generation
A simple non-reference counted string that uses small string optimization (SSO).
This string has 3 allocation possibilities:
kSSOCapacity
characters. This should handle most small strings and thus avoid dynamic memory allocation for most use-cases.Creates a default-initialized string if zero length.
Creates a string that takes ownership of the content of the other
string.
Tests whether the string is empty.
Returns the size of the string.
Returns the capacity of the string.
Returns the data of the string.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Replaces the current of the string with data
of the given size
.
Null terminated strings can set size
to SIZE_MAX
.
Replaces the current of the string with other
string.
Replaces the current of the string by a single c
character.
Replaces the current of the string by a c
character, repeated n
times.
Replaces the current of the string by a formatted integer i
(signed).
Replaces the current of the string by a formatted integer i
(unsigned).
Replaces the current of the string by the given data
converted to a HEX string.
Replaces the current of the string by a formatted string fmt
.
Replaces the current of the string by a formatted string fmt
(va_list version).
Appends str
having the given size size
to the string.
Null terminated strings can set size
to SIZE_MAX
.
Appends a formatted integer i
(signed).
Appends a formatted integer i
(unsigned).
Appends the given data
converted to a HEX string.
Appends a formatted string fmt
with args
.
Appends a formatted string fmt
(va_list version).
Resets string to embedded and makes it empty (zero length, zero first char)