Deflate class Null safety

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
read / write
hashCode int
The hash code for this object.
read-onlyinherited
level int?
Compression level used (1..9)
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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()).
read / write

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 non-existent 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
9
BEST_SPEED → const int
1
blCodes → const int
19
blockDone → const int
block flush performed
1
bufferSize → const int
8 * 2
busyState → const int
113
dCodes → const int
30
DEFAULT_COMPRESSION → const int
6
defMemLevel → const int
8
dynamicTrees → const int
2
endBlock → const int
256
fast → const int
1
FINISH → const int
4
finishDone → const int
finish done, accept no more input or output
3
finishStarted → const int
finish started, need only more output at next deflate
2
finishState → const int
666
FULL_FLUSH → const int
3
heapSize → const int
(2 * lCodes + 1)
initState → const int
42
lCodes → const int
(literals + 1 + lengthCodes)
lengthCodes → const int
29
literals → const int
256
maxBits → const int
15
maxMatch → const int
258
maxMemLevel → const int
9
maxWBits → const int
32K LZ77 window
15
minLookAhead → const int
(maxMatch + minMatch + 1)
minMatch → const int
3
needMore → const int
block not completed, need more input or more output
0
NO_COMPRESSION → const int
0
NO_FLUSH → const int
0
PARTIAL_FLUSH → const int
1
rep3_6 → const int
repeat previous bit length 3-6 times (2 bits of repeat count)
16
repz3_10 → const int
repeat a zero length 3-10 times (3 bits of repeat count)
17
repz11_138 → const int
repeat a zero length 11-138 times (7 bits of repeat count)
18
slow → const int
2
staticTrees → const int
1
stored → const int
0
storedBlock → const int
0
SYNC_FLUSH → const int
2
zAscii → const int
1
zBinary → const int
0
zBufError → const int
-5
zDataError → const int
-3
zDefaultCompression → const int
-1
zDefaultStrategy → const int
0
zDeflated → const int
The deflate compression method
8
zErrNo → const int
-1
zFiltered → const int
1
zHuffmanOnly → const int
2
zMemError → const int
-4
zNeedDict → const int
2
zOk → const int
0
zStreamEnd → const int
1
zStreamError → const int
-2
zUnknown → const int
2
zVersionError → const int
-6