LoadCodepoints method

  1. @override
Int32List LoadCodepoints(
  1. String text
)
override

Implementation

@override
Int32List LoadCodepoints(
  String text,
) => run(
  () => RaylibDebugLabels.LoadCodepoints(text),
  () {
    final count = rl.Temp.Int$.Ref1();
    final result = rl.Core.LoadCodepoints(
      rl.Temp.String$.ValueOrNull(text),
      count,
    );
    try {
      return .fromList(.generate(count.value, (i) => result[i]));
    } finally {
      rl.Core.UnloadCodepoints(result);
    }
  },
);