Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ dart:
- dev

dart_task:
- test: -p vm,firefox
- test: -p vm
# TODO: reinstate once https://github.com/dart-lang/typed_data/issues/16 is fixed
# - test: -p firefox
- dartfmt
- dartanalyzer

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.7

* Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 1.1.6

* Update tests to work with Dart 2.0 64 bit ints.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ The `typed_data` package contains utility functions and classes that makes worki

The `typed_data` package can be imported as

import 'package:typed_data/typed_data.dart';
```dart
import 'package:typed_data/typed_data.dart';
```

## Typed buffers: Growable typed data lists

Typed buffers are contains growable lists backed by typed arrays.
These are similar to the growable lists returned by `new List()`,
These are similar to the growable lists returned by `List()`,
but stores typed data like a typed data list.

## Features and bugs
Expand Down
2 changes: 0 additions & 2 deletions analysis_options.yaml

This file was deleted.

13 changes: 8 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: typed_data
version: 1.1.6
author: Dart Team <[email protected]>
version: 1.1.7

description: Utility functions and classes related to the 'dart:typed_data' library.
author: Dart Team <[email protected]>
homepage: https://github.com/dart-lang/typed_data
dev_dependencies:
test: "^0.12.0"

environment:
sdk: ">=2.0.0-dev.16.0 <2.0.0"
sdk: '>=2.0.0-dev.16.0 <3.0.0'

dev_dependencies:
test: '>=0.12.42 <2.0.0'
8 changes: 4 additions & 4 deletions test/typed_buffers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ testFloat32x4Buffer(List floatSamples) {

test("Float32x4Buffer", () {
var buffer = new Float32x4Buffer(5);
expect(buffer, new isInstanceOf<List<Float32x4>>());
expect(buffer, new TypeMatcher<List<Float32x4>>());

expect(buffer.length, equals(5));
expect(buffer.elementSizeInBytes, equals(128 ~/ 8));
Expand Down Expand Up @@ -312,7 +312,7 @@ void testFloatBuffer(
int bitSize, List<double> samples, create(), double round(double v)) {
test("Float${bitSize}Buffer", () {
var buffer = create();
expect(buffer, new isInstanceOf<List<double>>());
expect(buffer, new TypeMatcher<List<double>>());
int byteSize = bitSize ~/ 8;

expect(buffer.length, equals(0));
Expand Down Expand Up @@ -380,7 +380,7 @@ void testInt32x4Buffer(List<int> intSamples) {
Matcher equals32x4(Int32x4 expected) => new MatchesInt32x4(expected);

var buffer = new Int32x4Buffer(0);
expect(buffer, new isInstanceOf<List<Int32x4>>());
expect(buffer, new TypeMatcher<List<Int32x4>>());
expect(buffer.length, equals(0));

expect(buffer.elementSizeInBytes, equals(bytes));
Expand Down Expand Up @@ -439,7 +439,7 @@ void testIntBuffer(
assert(round(max) == max);
// All int buffers default to the value 0.
var buffer = create(0);
expect(buffer, new isInstanceOf<List<int>>());
expect(buffer, new TypeMatcher<List<int>>());
expect(buffer.length, equals(0));
var bytes = bits ~/ 8;

Expand Down