12345module juptune.core.ds.string;
const char[] sliceMaybeFromStack(
);
Provides access to the raw slice of the string, which may be on the stack or heap, depending on if Small String Optimisation is in use.
This function will never return a nullslice, you should check if the slice's length is 0 instead.
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.
Please never pass the slice to a native C function, as the risk of stack corruption is too high.
A slice to the string's memory.
String.slice, String.access