zlib

package
v0.0.0-...-f05e200 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2013 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package zlib provides API definitions for accessing zlib1.dll.

Index

Constants

This section is empty.

Variables

View Source
var (
	ZlibVersion func() string

	ZlibCompileFlags func() T.UnsignedLong

	ZError func(int) string

	Compress func(
		dst *byte, destLen *T.UnsignedLong,
		src *byte, sourceLen T.UnsignedLong) int

	Compress2 func(
		dst *byte, destLen *T.UnsignedLong,
		src *byte, sourceLen T.UnsignedLong, level int) int

	CompressBound func(
		sourceLen T.UnsignedLong) T.UnsignedLong

	Uncompress func(
		dst *byte, dstLen *T.UnsignedLong,
		src *byte, srcLen T.UnsignedLong) int

	Adler32 func(
		adler T.UnsignedLong, buf *byte, len uint) T.UnsignedLong

	Crc32 func(
		crc T.UnsignedLong, buf *byte, len uint) T.UnsignedLong

	Adler32Combine func(T.UnsignedLong, T.UnsignedLong, T.Long) T.UnsignedLong

	Crc32Combine func(T.UnsignedLong, T.UnsignedLong, T.Long) T.UnsignedLong

	GetCrcTable func() *T.UnsignedLong
)
View Source
var (
	Gzdopen func(fd int, mode string) *GzFile
	Gzopen  func(string, string) *GzFile

	Gzbuffer    func(g *GzFile, size uint) int
	Gzclearerr  func(g *GzFile)
	Gzclose     func(g *GzFile) int
	GzcloseR    func(g *GzFile) int
	GzcloseW    func(g *GzFile) int
	Gzdirect    func(g *GzFile) int
	Gzeof       func(g *GzFile) int
	Gzerror     func(g *GzFile, errnum *int) string
	Gzflush     func(g *GzFile, flush int) int
	Gzgetc      func(g *GzFile) int
	Gzgets      func(g *GzFile, buf string, leng int) string
	Gzoffset    func(g *GzFile) T.Long
	Gzprintf    func(g *GzFile, format string, v ...VArg) int
	Gzputc      func(g *GzFile, c int) int
	Gzputs      func(g *GzFile, s string) int
	Gzread      func(g *GzFile, buf *T.Void, leng uint) int
	Gzrewind    func(g *GzFile) int
	Gzseek      func(*GzFile, T.Long, int) T.Long
	Gzsetparams func(g *GzFile, level, strategy int) int
	Gztell      func(g *GzFile) T.Long
	Gzungetc    func(c int, file *GzFile) int
	Gzwrite     func(g *GzFile, buf *T.Void, leng uint) int
)
View Source
var (
	Deflate              func(z *ZStream, flush int) int
	DeflateBound         func(z *ZStream, sourceLen T.UnsignedLong) T.UnsignedLong
	DeflateCopy          func(dest, source *ZStream) int
	DeflateEnd           func(z *ZStream) int
	DeflateInit          func(z *ZStream, level int, version string, streamSize int) int
	DeflateInit2         func(z *ZStream, level, method, windowBits, memLevel, strategy int, version string, streamSize int) int
	DeflateParams        func(z *ZStream, level, strategy int) int
	DeflatePrime         func(z *ZStream, bits, value int) int
	DeflateReset         func(z *ZStream) int
	DeflateSetDictionary func(z *ZStream, dictionary *byte, dictLength uint) int
	DeflateSetHeader     func(z *ZStream, head *GzHeader) int
	DeflateTune          func(z *ZStream, goodLength, maxLazy, niceLength, maxChain int) int
	Inflate              func(z *ZStream, flush int) int
	InflateBack          func(z *ZStream, in InFunc, inDesc *T.Void, out OutFunc, outDesc *T.Void) int
	InflateBackEnd       func(z *ZStream) int
	InflateBackInit      func(z *ZStream, windowBits int, window *T.UnsignedChar, version string, streamSize int) int
	InflateCopy          func(dest, source *ZStream) int
	InflateEnd           func(z *ZStream) int
	InflateGetHeader     func(z *ZStream, head *GzHeader) int
	InflateInit          func(z *ZStream, version string, streamSize int) int
	InflateInit2         func(z *ZStream, windowBits int, version string, streamSize int) int
	InflateMark          func(z *ZStream) T.Long
	InflatePrime         func(z *ZStream, bits, value int) int
	InflateReset         func(z *ZStream) int
	InflateReset2        func(z *ZStream, windowBits int) int
	InflateSetDictionary func(z *ZStream, dictionary *byte, dictLength uint) int
	InflateSync          func(z *ZStream) int
	InflateSyncPoint     func(z *ZStream) int
	InflateUndermine     func(z *ZStream, i int) int
)

Functions

This section is empty.

Types

type AllocFunc

type AllocFunc func(
	opaque *T.Void,
	items uint,
	size uint) *T.Void

type FreeFunc

type FreeFunc func(
	opaque *T.Void,
	address *T.Void)

type GzFile

type GzFile struct{}

func (*GzFile) Buffer

func (g *GzFile) Buffer(size uint) int

func (*GzFile) Clearerr

func (g *GzFile) Clearerr()

func (*GzFile) Close

func (g *GzFile) Close() int

func (*GzFile) CloseR

func (g *GzFile) CloseR() int

func (*GzFile) CloseW

func (g *GzFile) CloseW() int

func (*GzFile) Direct

func (g *GzFile) Direct() int

func (*GzFile) Eof

func (g *GzFile) Eof() int

func (*GzFile) Error

func (g *GzFile) Error(errnum *int) string

func (*GzFile) Flush

func (g *GzFile) Flush(flush int) int

func (*GzFile) Getc

func (g *GzFile) Getc() int

func (*GzFile) Gets

func (g *GzFile) Gets(buf string, leng int) string

func (*GzFile) Offset

func (g *GzFile) Offset() T.Long

func (*GzFile) Printf

func (g *GzFile) Printf(format string, v ...VArg) int

func (*GzFile) Putc

func (g *GzFile) Putc(c int) int

func (*GzFile) Puts

func (g *GzFile) Puts(s string) int

func (*GzFile) Read

func (g *GzFile) Read(buf *T.Void, leng uint) int

func (*GzFile) Rewind

func (g *GzFile) Rewind() int

func (*GzFile) Seek

func (g *GzFile) Seek(a1 T.Long, a2 int) T.Long

func (*GzFile) Setparams

func (g *GzFile) Setparams(level, strategy int) int

func (*GzFile) Tell

func (g *GzFile) Tell() T.Long

func (*GzFile) Ungetc

func (g *GzFile) Ungetc(c int) int

func (*GzFile) Write

func (g *GzFile) Write(buf *T.Void, leng uint) int

type GzHeader

type GzHeader struct {
	Text     int
	Time     T.UnsignedLong
	Xflags   int
	Os       int
	Extra    *byte
	ExtraLen uint
	ExtraMax uint
	Name     *byte
	NameMax  uint
	Comment  *byte
	CommMax  uint
	Hcrc     int
	Done     int
}

type InFunc

type InFunc func(
	*T.Void,
	**T.UnsignedChar) uint

type InternalState

type InternalState struct{}

type OutFunc

type OutFunc func(
	*T.Void,
	*T.UnsignedChar,
	uint) int

type ZStream

type ZStream struct {
	NextIn   *byte
	AvailIn  uint
	TotalIn  T.UnsignedLong
	NextOut  *byte
	AvailOut uint
	TotalOut T.UnsignedLong
	Msg      *T.Char
	State    *InternalState
	Zalloc   AllocFunc
	Zfree    FreeFunc
	Opaque   *T.Void
	DataType int
	Adler    T.UnsignedLong
	// contains filtered or unexported fields
}

func (*ZStream) Deflate

func (z *ZStream) Deflate(flush int) int

func (*ZStream) DeflateBound

func (z *ZStream) DeflateBound(sourceLen T.UnsignedLong) T.UnsignedLong

func (*ZStream) DeflateCopyFrom

func (dst *ZStream) DeflateCopyFrom(src *ZStream) int

func (*ZStream) DeflateCopyTo

func (src *ZStream) DeflateCopyTo(dst *ZStream) int

func (*ZStream) DeflateEnd

func (z *ZStream) DeflateEnd() int

func (*ZStream) DeflateInit

func (z *ZStream) DeflateInit(level int, version string, streamSize int) int

func (*ZStream) DeflateInit2

func (z *ZStream) DeflateInit2(level, method, windowBits, memLevel, strategy int, version string, streamSize int) int

func (*ZStream) DeflateParams

func (z *ZStream) DeflateParams(level, strategy int) int

func (*ZStream) DeflatePrime

func (z *ZStream) DeflatePrime(bits, value int) int

func (*ZStream) DeflateReset

func (z *ZStream) DeflateReset() int

func (*ZStream) DeflateSetDictionary

func (z *ZStream) DeflateSetDictionary(dictionary *byte, dictLength uint) int

func (*ZStream) DeflateSetHeader

func (z *ZStream) DeflateSetHeader(head *GzHeader) int

func (*ZStream) DeflateTune

func (z *ZStream) DeflateTune(goodLength, maxLazy, niceLength, maxChain int) int

func (*ZStream) Inflate

func (z *ZStream) Inflate(flush int) int

func (*ZStream) InflateBack

func (z *ZStream) InflateBack(in InFunc, inDesc *T.Void, out OutFunc, outDesc *T.Void) int

func (*ZStream) InflateBackEnd

func (z *ZStream) InflateBackEnd() int

func (*ZStream) InflateBackInit

func (z *ZStream) InflateBackInit(windowBits int, window *T.UnsignedChar, version string, streamSize int) int

func (*ZStream) InflateCopyFrom

func (dst *ZStream) InflateCopyFrom(src *ZStream) int

func (*ZStream) InflateCopyTo

func (src *ZStream) InflateCopyTo(dst *ZStream) int

func (*ZStream) InflateEnd

func (z *ZStream) InflateEnd() int

func (*ZStream) InflateGetHeader

func (z *ZStream) InflateGetHeader(head *GzHeader) int

func (*ZStream) InflateInit

func (z *ZStream) InflateInit(version string, streamSize int) int

func (*ZStream) InflateInit2

func (z *ZStream) InflateInit2(windowBits int, version string, streamSize int) int

func (*ZStream) InflateMark

func (z *ZStream) InflateMark() T.Long

func (*ZStream) InflatePrime

func (z *ZStream) InflatePrime(bits, value int) int

func (*ZStream) InflateReset

func (z *ZStream) InflateReset() int

func (*ZStream) InflateReset2

func (z *ZStream) InflateReset2(windowBits int) int

func (*ZStream) InflateSetDictionary

func (z *ZStream) InflateSetDictionary(dictionary *byte, dictLength uint) int

func (*ZStream) InflateSync

func (z *ZStream) InflateSync() int

func (*ZStream) InflateSyncPoint

func (z *ZStream) InflateSyncPoint() int

func (*ZStream) InflateUndermine

func (z *ZStream) InflateUndermine(i int) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL