File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.1.1+1
4+
5+ * Fix documentation link
6+
37## 0.1.1
48
59* Add basic Utf16 support
Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ class Utf8 extends Struct<Utf8> {
5555 /// Returns a malloc-allocated pointer to the result.
5656 static Pointer <Utf8 > toUtf8 (String string) {
5757 final units = utf8.encode (string);
58- final Pointer <Uint8 > result =
59- allocate <Uint8 >(count: units.length + 1 );
58+ final Pointer <Uint8 > result = allocate <Uint8 >(count: units.length + 1 );
6059 final Uint8List nativeString =
6160 result.asExternalTypedData (count: units.length + 1 );
6261 nativeString.setAll (0 , units);
Original file line number Diff line number Diff line change 11name : ffi
2- version : 0.1.1
2+ version : 0.1.1+1
33author :
Dart Team <[email protected] > 44homepage : https://github.com/dart-lang/ffi
55description : Utilities for working with Foreign Function Interface (FFI) code.
66
77environment :
8- sdk : ' >=2.5.0-dev.2.1 <3.0.0'
9- documentation : http ://www.dartdocs.org /documentation/ffi/latest
8+ sdk : ' >=2.5.0 <3.0.0'
9+ documentation : https ://pub.dev /documentation/ffi/
1010
1111dependencies :
1212
You can’t perform that action at this time.
0 commit comments