Documentation ¶
Index ¶
- Constants
- func Compress(dest *byte, destLen *c.Ulong, source *byte, sourceLen c.Ulong) c.Int
- func Compress2(dest *byte, destLen *c.Ulong, source *byte, sourceLen c.Ulong, level c.Int) c.Int
- func CompressBound(sourceLen c.Ulong) c.Ulong
- func Uncompress(dest *byte, destLen *c.Ulong, source *byte, sourceLen c.Ulong) c.Int
- func Uncompress2(dest *byte, destLen *c.Ulong, source *byte, sourceLen *c.Ulong) c.Int
Constants ¶
View Source
const ( OK = 0 STREAM_END = 1 NEED_DICT = 2 ERRNO = -1 STREAM_ERROR = -2 DATA_ERROR = -3 MEM_ERROR = -4 BUF_ERROR = -5 VERSION_ERROR = -6 )
errno
View Source
const ( NO_COMPRESSION = 0 BEST_SPEED = 1 BEST_COMPRESSION = 9 DEFAULT_COMPRESSION = -1 )
compression levels
View Source
const ( NO_FLUSH = 0 PARTIAL_FLUSH = 1 SYNC_FLUSH = 2 FULL_FLUSH = 3 FINISH = 4 BLOCK = 5 TREES = 6 )
View Source
const ( FILTERED = 1 HUFFMAN_ONLY = 2 RLE = 3 FIXED = 4 DEFAULT_STRATEGY = 0 )
View Source
const ( BINARY = 0 TEXT = 1 ASCII = TEXT UNKNOWN = 2 )
View Source
const (
DEFLATED = 8
)
View Source
const (
LLGoPackage = "link: $(pkg-config --libs zlib); -lz"
)
Variables ¶
This section is empty.
Functions ¶
func Uncompress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.