12345module juptune.core.ds.string;
const char[] slice(
);
Provides access to the raw slice of the string, which will always be on the heap.
This function may return a nullslice if the string is empty.
This function will promote the string to become a "Big" string if it wasn't already. This means that it may allocate memory on the heap.
This function is best used when you're certain that the returned slice will not escape and is short lived, as the underlying payload may be released once the parent Stringgoes out of scope.
This function is safer than sliceMaybeFromStackas it will always return a slice to the heap.
A slice to the string's memory.
String.sliceMaybeFromStack, String.access.