Avoid eager copying with BytesBuilder (#186)

The previous implementation of `collectBytes` would return a `Uint8List`
where the `lengthInBytes` and `buffer.lengthInBytes` matched. This
property isn't an intended guarantee, however since some callers may
rely on it for correct behavior it is safer to retain it. Use `copy: false`
so that the buffer used in `takeBytes` has the same length as the data.
1 file changed
tree: 1d64d28a535b0a6579b2304dcd9885a9397f1e39
  1. .github/
  2. lib/
  3. test/
  4. .gitignore
  5. AUTHORS
  6. CHANGELOG.md
  7. CONTRIBUTING.md
  8. LICENSE
  9. README.md
  10. analysis_options.yaml
  11. pubspec.yaml
README.md

Contains utility classes in the style of dart:async to work with asynchronous computations.