readAsBytes method

Future<List<int>> readAsBytes ()

Implementation

Future<List<int>> readAsBytes() {
  return fold<BytesBuilder>(new BytesBuilder(), (bb, buf) => bb..add(buf))
      .then((bb) => bb.takeBytes());
}