ByteBuffer constructor

ByteBuffer({
  1. dynamic terminatingChar = '\n',
  2. int capacity = 4096,
})

Implementation

ByteBuffer({var terminatingChar = '\n', int capacity = 4096}) {
  this.terminatingChar = utf8.encode(terminatingChar)[0];
  this.capacity = capacity;
  _bytesBuilder = BytesBuilder(copy: false);
}