Documentation
¶
Overview ¶
Package compress provides functions used for decompressing MPQ file sectors
Index ¶
- Variables
- func Decompress1(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress2(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_ADPCM_mono(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_ADPCM_stereo(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_Huffman(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_LZMA(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_PKWARE_DCL(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_Sparse(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_bzip2(in_bytes []byte) (out_bytes []byte, err error)
- func Decompress_zlib(in_bytes []byte) (out_bytes []byte, err error)
- type DecompressTableEntry
- type Decompressor
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var DecompressTable = []DecompressTableEntry{ {Bzip2, Decompress_bzip2}, {PKWARE, Decompress_PKWARE_DCL}, {Zlib, Decompress_zlib}, {Huffman, Decompress_Huffman}, {ADPCM_stereo, Decompress_ADPCM_stereo}, {ADPCM_mono, Decompress_ADPCM_mono}, {Sparse, Decompress_Sparse}, }
Functions ¶
func Decompress1 ¶
func Decompress2 ¶
func Decompress_ADPCM_mono ¶
func Decompress_ADPCM_stereo ¶
func Decompress_Huffman ¶
func Decompress_LZMA ¶
func Decompress_PKWARE_DCL ¶
func Decompress_Sparse ¶
func Decompress_bzip2 ¶
func Decompress_zlib ¶
Types ¶
type DecompressTableEntry ¶
type DecompressTableEntry struct { Type Decompressor }
type Decompressor ¶
type Type ¶
type Type uint32
const ( Huffman Type = 0x01 // Huffmann compression (used on WAVE files only) Zlib Type = 0x02 // ZLIB compression PKWARE Type = 0x08 // PKWARE DCL compression Bzip2 Type = 0x10 // BZIP2 compression (added in Warcraft III) Sparse Type = 0x20 // Sparse compression (added in Starcraft 2) ADPCM_mono Type = 0x40 // IMA ADPCM compression (mono) ADPCM_stereo Type = 0x80 // IMA ADPCM compression (stereo) LZMA Type = 0x12 // LZMA compression. Added in Starcraft 2. This value is NOT a combination of flags. NextSame Type = 0xFFFFFFFF // Same compression )
Click to show internal directories.
Click to hide internal directories.