readVector method

List<Uint8List> readVector()

Reads a varint that provides the number of slices to read with readVarSlice() and returns then in a list.

Implementation

List<Uint8List> readVector()
  => List<Uint8List>.generate(readVarInt().toInt(), (i) => readVarSlice());