Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit ebc021b

Browse files
authored
Fix travis (#8)
1 parent f46c1f4 commit ebc021b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.1.1+1
4+
5+
* Fix documentation link
6+
37
## 0.1.1
48

59
* Add basic Utf16 support

lib/src/utf8.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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);

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: ffi
2-
version: 0.1.1
2+
version: 0.1.1+1
33
author: Dart Team <[email protected]>
44
homepage: https://github.com/dart-lang/ffi
55
description: Utilities for working with Foreign Function Interface (FFI) code.
66

77
environment:
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

1111
dependencies:
1212

0 commit comments

Comments
 (0)