decode static method

XcfDocument decode(
  1. Uint8List bytes, {
  2. XcfReadOptions options = const XcfReadOptions(),
  3. int maxDictionaryBytes = 64 * 1024 * 1024,
})

Removes one envelope with size and dictionary limits, then decodes XCF.

Implementation

static XcfDocument decode(Uint8List bytes, {XcfReadOptions options = const XcfReadOptions(), int maxDictionaryBytes = 64 * 1024 * 1024}) => XcfCodec.decode(
  unwrap(bytes, maxInputBytes: options.maxInputBytes, maxOutputBytes: options.maxInputBytes, maxDictionaryBytes: maxDictionaryBytes),
  options: options,
);