IpcLimits class final

Resource limits applied while decoding untrusted IPC input.

Defaults are conservative; trusted callers handling larger data should pass raised limits explicitly.

Constructors

IpcLimits({int maxDepth = 64, int maxFields = 10000, int maxRows = 1 << 20, int maxValues = 4 << 20, int maxBuffers = 1 << 16, int maxMessageBytes = 64 << 20, int maxDictionaries = 1024, int maxBatches = 1 << 20})
Creates limits; every bound is inclusive.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxBatches → int
Maximum number of record batches.
final
maxBuffers → int
Maximum number of field nodes or buffers in one message.
final
maxDepth → int
Maximum type nesting depth.
final
maxDictionaries → int
Maximum number of dictionary batches.
final
maxFields → int
Maximum number of fields (including nested children) in a schema.
final
maxMessageBytes → int
Maximum size of a message's metadata, body, decompressed body or file footer.
final
maxRows → int
Maximum length of any single array node (and of a delta-merged dictionary).
final
maxValues → int
Maximum total of all field node lengths decoded by one reader. Bounds work even for layouts (such as Null or run-end encoded) whose wire size is independent of their logical length.
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