getVarSlice method
Get next byte and return an ByteData value based on the data length specified by this byte. The return value will be ByteData.
Implementation
ByteData getVarSlice([Endian endian = Endian.little]) {
return getSlice(getVarInt(endian));
}