encodeListBytes<T> static method
Encodes a list of @HybridRecord objects into framed bytes
([4B len][payload]) ready to copy into the module heap.
Implementation
static Uint8List encodeListBytes<T>(
List<T> items,
void Function(RecordWriter w, T item) writeItem,
) {
final w = RecordWriter();
RecordWriterBase.writeListPayload(w, items, writeItem);
return w.takeFramedBytes();
}