Minor Utf8.strlen() improvement (#65)

As suggested in #61, using indexOf(0) to search the zero byte has a bit
less overhead than indexWhere(closure).
1 file changed
tree: 4ae915865b4ab242da1a784a0161e2101ed5b981
  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.