Deflate class

Constructors

Deflate(List<int> bytes, {int? level = DEFAULT_COMPRESSION, int flush = FINISH, dynamic output})
Deflate.buffer(InputStreamBase _input, {int? level = DEFAULT_COMPRESSION, int flush = FINISH, dynamic output})

Properties

crc32 int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
level int?
Compression level used (1..9)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total int
Read a buffer from the current input stream, update the adler32 and total number of bytes read. All deflate() input goes through this function so some applications may wish to modify it to avoid allocating a large strm->next_in buffer and copying from it. (See also flush_pending()).
getter/setter pair

Methods

addBuffer(InputStream buffer, {int flush = FINISH}) → void
Add more data to be deflated.
addBytes(List<int> bytes, {int flush = FINISH}) → void
Add more data to be deflated.
biFlush() → void
Flush the bit buffer, keeping at most 7 bits in it.
finish() → void
getBytes() List<int>
Get the resulting compressed bytes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDataType() → void
Set the data type to ASCII or BINARY, using a crude approximation: binary if more than 20% of the bytes are <= 6 or >= 128, ascii otherwise. IN assertion: the fields freq of dyn_ltree are set and the total of all frequencies does not exceed 64K (to fit in an int on 16 bit machines).
takeBytes() List<int>
Get the resulting compressed bytes without storing the resulting data to minimize memory usage.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

BEST_COMPRESSION → const int
BEST_SPEED → const int
blCodes → const int
blockDone → const int
block flush performed
bufferSize → const int
busyState → const int
dCodes → const int
DEFAULT_COMPRESSION → const int
defMemLevel → const int
dynamicTrees → const int
endBlock → const int
fast → const int
FINISH → const int
finishDone → const int
finish done, accept no more input or output
finishStarted → const int
finish started, need only more output at next deflate
finishState → const int
FULL_FLUSH → const int
heapSize → const int
initState → const int
lCodes → const int
lengthCodes → const int
literals → const int
maxBits → const int
maxMatch → const int
maxMemLevel → const int
maxWBits → const int
32K LZ77 window
minLookAhead → const int
minMatch → const int
needMore → const int
block not completed, need more input or more output
NO_COMPRESSION → const int
NO_FLUSH → const int
PARTIAL_FLUSH → const int
rep3_6 → const int
repeat previous bit length 3-6 times (2 bits of repeat count)
repz3_10 → const int
repeat a zero length 3-10 times (3 bits of repeat count)
repz11_138 → const int
repeat a zero length 11-138 times (7 bits of repeat count)
slow → const int
staticTrees → const int
stored → const int
storedBlock → const int
SYNC_FLUSH → const int
zAscii → const int
zBinary → const int
zBufError → const int
zDataError → const int
zDefaultCompression → const int
zDefaultStrategy → const int
zDeflated → const int
The deflate compression method
zErrNo → const int
zFiltered → const int
zHuffmanOnly → const int
zMemError → const int
zNeedDict → const int
zOk → const int
zStreamEnd → const int
zStreamError → const int
zUnknown → const int
zVersionError → const int