Add _TypedDataBuffer.addRange.

This is useful for concatenating ranges of existing lists, as comes up
occasionally when implementing converters.

Also make _TypedDataBuffer.addAll more efficient for lists.

R=lrn@google.com

Review URL: https://codereview.chromium.org//1404443005 .
4 files changed
tree: a653937bbc1d652c8141c9facae8046f1e11ca97
  1. lib/
  2. test/
  3. .gitignore
  4. .test_config
  5. AUTHORS
  6. CHANGELOG.md
  7. codereview.settings
  8. CONTRIBUTING.md
  9. LICENSE
  10. pubspec.yaml
  11. README.md
README.md

Helper libraries for working with typed data lists.

The typed_data package contains utility functions and classes that makes working with typed data lists easier.

Using

The typed_data package can be imported as

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(), but stores typed data like a typed data list.

Features and bugs

Please file feature requests and bugs at the issue tracker.