W3cubDocs

/Dart 2

takeBytes method

List<int> takeBytes ()

Returns the contents of this and clears this.

The list returned is a view of the internal buffer, limited to the length.

Implementation

List<int> takeBytes();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/BytesBuilder/takeBytes.html