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.
2 files changed
tree: 3cc58448cc664f07172c8341a1e1f5b08c8c5765
  1. .gitignore
  2. .travis.yml
  3. AUTHORS
  4. CHANGELOG.md
  5. LICENSE
  6. README.md
  7. analysis_options.yaml
  8. example/
  9. lib/
  10. pubspec.yaml
  11. test/
README.md

Build Status

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.