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