encodeIndexedListBytes<T> static method
Encodes a list with an O(1) offset index table:
[4B count][8B×n offset table][item bytes].
Implementation
static Uint8List encodeIndexedListBytes<T>(
List<T> items,
void Function(RecordWriter w, T item) writeItem,
) {
final w = RecordWriter();
RecordWriterBase.writeIndexedListPayload(w, items, writeItem);
return w.takeFramedBytes();
}