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
List<E> read(BufferContext bc, int offset) {
  final listOffset = bc.derefObject(offset);
  return lazy
      ? _FbGenericList<E>(_elementReader, bc, listOffset)
      : List<E>.generate(
          bc.buffer.getUint32(listOffset, Endian.little),
          (int index) => _elementReader.read(
              bc, listOffset + size + _elementReader.size * index),
          growable: true);
}