allocateString static method

Pointer<Char> allocateString(
  1. String s
)

Implementation

static ffi.Pointer<ffi.Char> allocateString(String s) {
  return s.toNativeUtf8(allocator: calloc).cast<ffi.Char>();
}