LoadCodepoints method
Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
Implementation
Int32List LoadCodepoints(
String text,
) => run(
() => _debugLabels.LoadCodepoints(text),
() {
final count = $.Int$.Ref1();
final result = _flat.LoadCodepoints(
$.String$.ValueOrNull(text),
count,
);
try {
return result.asCopy(count.value);
} finally {
_flat.UnloadCodepoints(result);
}
},
);