encodeSnapshotV1 method

Uint8List encodeSnapshotV1({
  1. required YSnapshot snapshot,
})

Implementation

Uint8List encodeSnapshotV1({
  required YSnapshot snapshot,
}) {
  final results = _encodeSnapshotV1([snapshot.toWasm()]);
  final result = results[0];
  return (result is Uint8List
      ? result
      : Uint8List.fromList((result! as List).cast()));
}