commit | 7eae47dd47fe9de4f9670a7d9db0c7b957c3be0a | [log] [tgz] |
---|---|---|
author | J-P Nurmi <jpnurmi@gmail.com> | Wed Nov 18 10:00:52 2020 +0100 |
committer | GitHub <noreply@github.com> | Wed Nov 18 10:00:52 2020 +0100 |
tree | 3cc58448cc664f07172c8341a1e1f5b08c8c5765 | |
parent | 98e8755702c8c9a877a7c36e2e56d9c8f08439b8 [diff] |
Utf8.fromUtf8(): allow passing the length (#61) The string could be non-zero-terminated, for example, or even if it is, the length may be already known, in which case an unnecessary strlen() call can be avoided.
Utilities for working with Foreign Function Interface (FFI) code, incl. converting between Dart strings and C strings encoded with UTF-8 and UTF-16.
For additional details about Dart FFI (dart:ffi
), see https://dart.dev/guides/libraries/c-interop.