read method

  1. @override
List<E> read(
  1. BufferContext bc,
  2. int offset
)
override

Read the value at the given offset in bc.

Implementation

@override
@pragma('vm:prefer-inline')
List<E> read(BufferContext bc, int offset) {
  final listOffset = bc.derefObject(offset);
  final length = bc.buffer.getUint32(listOffset, Endian.little);
  return List<E>.generate(
      length,
      (int index) => _elementReader.read(
          bc, listOffset + size + _elementReader.size * index),
      growable: true);
}