readBinary method

  1. @override
Int8List readBinary([
  1. dynamic length
])
override

Implementation

@override
Int8List readBinary([dynamic length]) {
  length ??= readVarint32();
  checkContentReadLength(length);
  if (length == 0) {
    return Int8List(0);
  }
  ensureContainerHasEnough(length, TType.BYTE);
  Int8List buf = Int8List(length);
  trans_.readAll(buf, 0, length);
  return buf;
}