decodeListBytes<T> static method
Decodes a list of @HybridRecord objects from framed bytes.
Implementation
static List<T> decodeListBytes<T>(
Uint8List framed,
T Function(RecordReader r) readItem,
) {
final r = RecordReader.fromFramedBytes(framed);
final count = r.readInt32();
return List.generate(count, (_) => readItem(r));
}