- Require Dart 3.3.0 or greater.
- Migrate
elementAt
use tooperator +
.
- Require Dart 3.0.0 or greater.
- Expose native equivalent to
free
(nativeFree
) frommalloc
andcalloc
allocators.
- Fixed a typo in a doc comment.
- Added package topics to the pubspec file.
- Only zero out memory on successful allocation on Windows.
- Upgrade test dev dependency.
- Switch Windows memory allocation to use
CoTaskMemAlloc
andCoTaskMemFree
, which will enable support forNativeFinalizer
. - Require Dart 2.17.0 or greater.
Revert added common C integer types as ABI-specific integers. Instead, these are available in Dart 2.17.
This release requires Dart 2.16.0
or greater.
Added common C integer types as ABI-specific integers. These common C integer
types will make their way into dart:ffi
in 2.17 and be deprecated from this
package. Having them in this package enables using them in Dart 2.16.
This pre-release requires Dart 2.16.0-118.0.dev
or greater.
Fixed unhandled exception in withZoneArena
(#107).
Adds a sanity check to Pointer<Utf8>
and Pointer<Utf16>
extension methods
that receiver is not nullptr
.
Adds the arena
allocator.
Moves from static analysis with lints in package:pedantic to package:lints.
Bumping the version of this package to 1.0.0
.
Removes all deprecated methods, use 0.3.0-nullsafety.3
for migration.
Deprecates the static methods on Utf8
and Utf16
and introduces
extension methods to replace them.
Adds back in deprecated allocate
and free
to ease migration.
These will be removed in the next release.
This pre-release requires Dart 2.12.0-259.9.beta
or greater.
This pre-release requires Dart 2.12.0-259.8.beta
or greater.
Note that this pre-release does not work in Flutter versions containing Dart
2.12.0-260.0.dev
- 2.12.0-264.0.dev
.
Using Allocator.call
throws a NoSuchMethodError
in these versions.
See Flutter Engine #23954 for more info.
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 for more info.
Removes allocate
and free
.
Instead, introduces calloc
which implements the new Allocator
interface.
See breaking change #44621 for more info.
This pre-release requires Dart 2.12.0-265.0.dev
or greater.
Adds an optional named length
argument to Utf8.fromUtf8()
.
Pre-release (non-stable) release supporting null safety. Requires Dart 2.12.0 or greater.
Stable release incorporating all the previous dev release changes.
Bump SDK constraint to >= 2.6.0
.
Bump SDK constraint to >= 2.6.0-dev.8.2
which contains the new API of dart:ffi
.
Replace use of deprecated asExternalTypedData
with asTypedList
.
Incorporate struct API changes, drop type argument of structs.
- Adds top-level
allocate<T>()
andfree()
methods which can be used as a replacement for the deprecatedPointer.allocate<T>()
andPointer.free()
members indart:ffi
.
- Expand readme
- Fix documentation link
- Add basic Utf16 support
- Initial release supporting Utf8