take method

ByteStream take(
  1. int count
)

Takes only the first count chunks.

count the number of chunks to take

Implementation

ByteStream take(int count) {
  return ByteStream._(_stream.take(count));
}