nsz

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 4 Imported by: 0

README

NSZ compressiong (and XCZ)

Please read https://github.com/nicoboss/nsz for documentation on how all this works

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockHeader

type BlockHeader struct {
	Magic                   []byte
	Version                 int8
	Type                    int8
	Unused                  int8
	BlockSizeExponent       int8
	NumberOfBlocks          int32
	DecompressedSize        int64
	CompressedBlockSizeList []int32
}

func NewBlockHeader

func NewBlockHeader(reader io.Reader) (*BlockHeader, error)

type Decompressor

type Decompressor struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewBlockDecompressor

func NewBlockDecompressor(reader io.ReadSeeker) (*Decompressor, error)

func (*Decompressor) Close

func (d *Decompressor) Close()

func (*Decompressor) Read

func (d *Decompressor) Read(p []byte) (n int, err error)

type NSZSection

type NSZSection struct {
	Offset        int64
	Size          int64
	CryptoType    int64
	Pad           int64
	CryptoKey     []byte
	CryptoCounter []byte
}

func NSZSectionDummy

func NSZSectionDummy(size, offset int64) NSZSection

func NSZSectionFromReader

func NSZSectionFromReader(reader io.Reader) (*NSZSection, error)

Jump to

Keyboard shortcuts

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