Static ReadonlyRATIO_Below this many expanded bytes the ratio is not asked.
StaticallowanceReturns how many expanded bytes a file of stored bytes may become: the
ratio times its size, at least the floor, at most the cap.
the file's size
the limits
the allowance in bytes
StaticheadReads the first bytes of a file, for sniff().
the file's path
the bytes
StaticlimitsReturns the expansion limits as the settings say now.
the limits
StaticopenOpens a file for reading, expanded if it is compressed.
The stream fails with a coded error on a bomb (STS-RISK-0032), an
ambiguous archive (STS-RISK-0033) or a corrupt file (STS-RISK-0034).
the file's path
Optionalgiven: ExpandLimits
the limits; the settings' when omitted
{ kind, entry, stream, close }, where close() releases the
file however reading ended and is safe to call twice
StaticreadReads a whole file as text, expanded: the FIDO MDS3 BLOB, which is one signed document rather than lines.
the file's path
the most characters held; past it the read is refused
Optionalgiven: ExpandLimits
the limits; the settings' when omitted
the text
StaticsniffSays what a file's first bytes say it is.
the file's first bytes
gzip, zip or plain
A dataset file, expanded by what it is rather than what it is called: gzip, a single-entry zip, or plain text.
The one place a dataset file is expanded. The expansion is streamed, never written, and a decompression bomb is refused while still small.