Open
Description
However, we might need something more performant (which avoids copying), if this is not performant enough.
Originally posted by @dcharkes in #35762 (comment)
Our null-terminated Utf8 and Utf16 string helpers in package:ffi require copying bytes from Dart to C.
We should investigate whether we can have pass strings from C to Dart without copying, and whether we can pass Utf16 strings from Dart to C without copying. The latter is unlikely though, as the Dart Garbage Collector might relocate the String.