read method

  1. @override
  2. @pragma('vm:prefer-inline')
List<int> read(
  1. BufferContext bc,
  2. int offset
)
override

Read the value at the given offset in bc.

Implementation

@override
@pragma('vm:prefer-inline')
List<int> read(BufferContext bc, int offset) {
  final listOffset = bc.derefObject(offset);
  final length = bc._getUint32(listOffset);

  return bc._asUint16List(listOffset + _sizeofUint32, length);
}