readVectorBytes method

Vector<Uint8List> readVectorBytes()

Read List<Uint8List>.

Implementation

Vector<Uint8List> readVectorBytes() {
  final ctor = readInt32();
  assert(ctor == _vectorCtor, 'Invalid type.');

  final count = readInt32();
  final items = <Uint8List>[];

  for (int i = 0; i < count; i++) {
    items.add(Uint8List.fromList(readBytes()));
  }

  return Vector._(items);
}