File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## 0.1.2
3
+ ## 0.1.3-dev.2
4
+
5
+ Incorporate struct API changes (drop type argument of structs).
6
+
7
+ ## 0.1.3-dev.1
4
8
5
9
* Adds top-level ` allocate<T>() ` and ` free() ` methods which can be used as a
6
10
replacement for the deprecated ` Pointer.allocate<T>() ` and ` Pointer.free() `
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import 'package:ffi/ffi.dart';
13
13
///
14
14
/// [Utf16] is respresented as a struct so that `Pointer<Utf16>` can be used in
15
15
/// native function signatures.
16
- class Utf16 extends Struct < Utf16 > {
16
+ class Utf16 extends Struct {
17
17
/// Convert a [String] to a Utf16-encoded null-terminated C string.
18
18
///
19
19
/// If 'string' contains NULL bytes, the converted string will be truncated
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ final int _maxSize = sizeOf<IntPtr>() == 8 ? _kMaxSmi64 : _kMaxSmi32;
20
20
//
21
21
// TODO(https://github.com/dart-lang/ffi/issues/4): No need to use
22
22
// 'asExternalTypedData' when Pointer operations are performant.
23
- class Utf8 extends Struct < Utf8 > {
23
+ class Utf8 extends Struct {
24
24
/// Returns the length of a null-terminated string -- the number of (one-byte)
25
25
/// characters before the first null byte.
26
26
static int strlen (Pointer <Utf8 > string) {
Original file line number Diff line number Diff line change 1
1
name : ffi
2
- version : 0.1.3-dev.1
2
+ version : 0.1.3-dev.2
3
3
author :
Dart Team <[email protected] >
4
4
homepage : https://github.com/dart-lang/ffi
5
5
description : Utilities for working with Foreign Function Interface (FFI) code.
You can’t perform that action at this time.
0 commit comments