encodeBytes method

Uint8List encodeBytes(
  1. List<int> bytes, {
  2. int? level,
  3. int windowBits = maxWindowBits,
})

Compress the given bytes with the ZLib format. level will set the compression level to use, between 0 and 9, 6 is the default.

Implementation

Uint8List encodeBytes(
  List<int> bytes, {
  int? level,
  int windowBits = maxWindowBits,
}) => platformZLibEncoder.encodeBytes(bytes, level: level);