RawData.decode constructor

RawData.decode(
  1. RawReader reader,
  2. int length
)

Implementation

factory RawData.decode(RawReader reader, int length) {
  length ??= reader.availableLengthInBytes;
  if (length == 0) {
    return empty;
  }
  return new RawData(reader.readUint8ListViewOrCopy(length));
}