ShrinkExtensionsBytes extension

Extensions on Uint8List for compression and decompression operations.

These extension methods make it more convenient to work with compressed data by allowing method chaining and providing a more fluent API.

on

Methods

restoreBytes() Uint8List

Available on Uint8List, provided by the ShrinkExtensionsBytes extension

Decompresses this Uint8List as binary data.
restoreJson() Map<String, dynamic>

Available on Uint8List, provided by the ShrinkExtensionsBytes extension

Decompresses this Uint8List as a JSON object.
restoreText() String

Available on Uint8List, provided by the ShrinkExtensionsBytes extension

Decompresses this Uint8List as text data.
restoreUnique() List<int>

Available on Uint8List, provided by the ShrinkExtensionsBytes extension

Decompresses this Uint8List as a list of unique integers.
shrink() Uint8List

Available on Uint8List, provided by the ShrinkExtensionsBytes extension

Compresses bytes using zlib compression.
toBase64() String

Available on Uint8List, provided by the ShrinkExtensionsBytes extension

Converts this Uint8List to a base64-encoded string.