utils/bytes library
Functions
-
restoreBytes(
Uint8List bytes) → Uint8List - Decompresses a Uint8List that was compressed by shrinkBytes.
-
shrinkBytes(
Uint8List bytes) → Uint8List - Compresses a Uint8List using the optimal compression method. Returns a Uint8List with a method byte prefix followed by compressed data. Compression is lossless and can be reversed with restoreBytes().