Bounded, checksum-verified whole-file XCF envelope support.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Uint8List bytes, {XcfReadOptions options = const XcfReadOptions(), int maxDictionaryBytes = 64 * 1024 * 1024}) → XcfDocument - Removes one envelope with size and dictionary limits, then decodes XCF.
-
detect(
List< int> bytes) → XcfEnvelope? - Identifies a supported signature, or returns null for an unrelated file.
-
encode(
XcfDocument document, {XcfEnvelope envelope = XcfEnvelope.none, XcfWriteOptions options = const XcfWriteOptions()}) → Uint8List - Encodes a document with a selected outer envelope and a bounded output.
-
unwrap(
Uint8List bytes, {int maxInputBytes = 512 * 1024 * 1024, int maxOutputBytes = 512 * 1024 * 1024, int maxDictionaryBytes = 64 * 1024 * 1024}) → Uint8List - Returns raw XCF bytes, rejecting partial output, bad checksums and nesting.
-
wrap(
Uint8List bytes, {required XcfEnvelope envelope, int maxOutputBytes = 512 * 1024 * 1024}) → Uint8List - Wraps raw XCF bytes; inner tile compression and metadata stay unchanged.