dmcunrar

package
v0.0.0-...-c8af624 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: GPL-2.0, GPL-2.0 Imports: 8 Imported by: 1

README

dmc_unrar README

dmc_unrar is a dependency-free, single-file FLOSS library for unpacking and decompressing RAR archives. dmc_unrar is licensed under the terms of the GNU General Public License version 2 (or later).

Please see dmc_unrar.c for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

func OpenArchive

func OpenArchive(reader io.ReaderAt, size int64) (*Archive, error)

func OpenArchiveFromPath

func OpenArchiveFromPath(name string) (*Archive, error)

func (*Archive) ExtractFile

func (a *Archive) ExtractFile(ef *ExtractedFile, index int64) error

func (*Archive) FileIsDirectory

func (a *Archive) FileIsDirectory(i int64) bool

func (*Archive) FileIsSupported

func (a *Archive) FileIsSupported(i int64) error

func (*Archive) Free

func (a *Archive) Free()

func (*Archive) GetFileCount

func (a *Archive) GetFileCount() int64

func (*Archive) GetFileStat

func (a *Archive) GetFileStat(i int64) *C.dmc_unrar_file

func (*Archive) GetFilename

func (a *Archive) GetFilename(i int64) (string, error)

type ExtractedFile

type ExtractedFile struct {
	// contains filtered or unexported fields
}

func NewExtractedFile

func NewExtractedFile(writer io.Writer) *ExtractedFile

func (*ExtractedFile) Free

func (ef *ExtractedFile) Free()

type FileReader

type FileReader struct {
	// contains filtered or unexported fields
}

func NewFileReader

func NewFileReader(reader io.ReaderAt, size int64) *FileReader

func (*FileReader) Free

func (fr *FileReader) Free()

func (*FileReader) Seek

func (fr *FileReader) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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