readVarSlice method

Uint8List readVarSlice()

Reads a varint and then returns a number of bytes equal to that varint

Implementation

Uint8List readVarSlice() => readSlice(readVarInt().toInt());