instantiations / es_compression

Compression framework for Dart providing FFI implementations for Brotli, Lz4, Zstd (Zstandard) with ready-to-use prebuilt binaries for Win/Linux/Mac.
https://www.instantiations.com
BSD 3-Clause "New" or "Revised" License
41 stars 8 forks source link

how to use it on the web platform? #32

Closed rty813 closed 2 years ago

rty813 commented 2 years ago

my code:

final codec = Lz4Codec();
points = codec.decode(data);

and throws exception: Unsupported operation: No Decoder Implementation

sethloco commented 2 years ago

This project provides:

  1. Framework for writing encoder/decoders
  2. FFI implementations for lz4, zstd and brotli

This project does NOT currently provide:

  1. Pure-Dart implementations of lz4, zstd or brotli

So an lz4 decoder written in pure-dart (i.e no platform ffi to a c library) would need to be developed to satisfy what you are asking for.

Hope this helps and let me know if you have additional questions