XcfReadOptions class final

Resource limits applied before allocating buffers or following structures.

Constructors

XcfReadOptions({int maxInputBytes = 512 * 1024 * 1024, int maxPixels = 100000000, int maxDecodedBytes = 512 * 1024 * 1024, int maxMetadataBytes = 64 * 1024 * 1024, int maxStringBytes = 1024 * 1024, int maxItems = 10000, int maxProperties = 100000, int maxDepth = 64})
Creates conservative defaults suitable for untrusted documents.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxDecodedBytes → int
Cumulative eager sample budget; per-request allocation ceiling in lazy mode.
final
maxDepth → int
Maximum nesting of effect masks and their effects.
final
maxInputBytes → int
Maximum encoded file size.
final
maxItems → int
Maximum number of layers, channels, effects, and vectors in total.
final
maxMetadataBytes → int
Cumulative property and vector payload budget.
final
maxPixels → int
Maximum number of pixels in any drawable or canvas.
final
maxProperties → int
Maximum number of properties in total.
final
maxStringBytes → int
Maximum bytes in one UTF-8 string.
final
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