wux

package
v0.0.0-...-04c68dd Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package wux implements compression of Nintendo Wii-U disc images. The technique deduplicates the original disc image on a sector-by-sector basis and relies on the fact that despite the disc image being of a fixed size of around 23 GB, the majority of that space will be unused.

Index

Constants

View Source
const (
	// Extension is the conventional file extension used
	Extension = ".wux"
)

Variables

View Source
var (
	// ErrBadMagic is returned if the first eight bytes do not contain the correct values.
	ErrBadMagic = errors.New("wux: bad magic")
)

Functions

func NewReadCloser

func NewReadCloser(rac readerutil.ReaderAtCloser) (wud.ReadCloser, error)

NewReadCloser returns a new wud.ReadCloser that reads and decompresses from rac.

func NewReader

func NewReader(ra io.ReaderAt) (wud.Reader, error)

NewReader returns a new wud.Reader that reads and decompresses from ra.

func NewWriter

func NewWriter(ws io.WriteSeeker, sectorSize uint32, uncompressedSize uint64) (io.WriteCloser, error)

NewWriter returns an io.WriteCloser that compresses and writes to ws in sectorSize chunks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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