commit | b0724659e00ca107120a1e50f841c890128b1982 | [log] [tgz] |
---|---|---|
author | Daco Harkes <dacoharkes@google.com> | Mon Feb 01 11:19:14 2021 +0100 |
committer | GitHub <noreply@github.com> | Mon Feb 01 11:19:14 2021 +0100 |
tree | 806cd326ea7caead87b9c68b64b1db02d9982d6f | |
parent | 31352979f261f7c6ea88fa0a2cfb0fdd004c38fb [diff] |
0.3.0-dev.0 Allocator and Opaque (#72) Changes `Utf8` and `Utf16` to extend `Opaque` instead of `Struct`. This means `.ref` is no longer available and `Pointer<Utf(..)>` should be used. See [breaking change #44622](https://github.com/dart-lang/sdk/issues/44622) for more info. Removes `allocate` and `free`. Instead, introduces `calloc` which implements the new `Allocator` interface. See [breaking change #44621](https://github.com/dart-lang/sdk/issues/44621) for more info. This pre-release requires Dart `2.12.0-265.0.dev` or greater.
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.