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 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.
Click to show internal directories.
Click to hide internal directories.