decode method

  1. @override
DecodingResult<Uint8List> decode(
  1. ByteBuffer buffer,
  2. int offset
)
override

Implementation

@override
DecodingResult<Uint8List> decode(ByteBuffer buffer, int offset) {
  return DecodingResult(
    buffer.asUint8List(offset, length),
    sizeUnitBytes,
  );
}