szextractor

package
v0.0.0-...-dd50b9e Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownFeatures = struct {
	None     savior.ExtractorFeatures
	SevenZip savior.ExtractorFeatures
	Generic  savior.ExtractorFeatures
}{
	None: savior.ExtractorFeatures{
		Name:          "sz::unknown",
		Preallocate:   false,
		RandomAccess:  false,
		ResumeSupport: savior.ResumeSupportNone,
	},
	SevenZip: savior.ExtractorFeatures{
		Name:        "sz::7z",
		Preallocate: true,

		RandomAccess:  false,
		ResumeSupport: savior.ResumeSupportNone,
	},
	Generic: savior.ExtractorFeatures{
		Name:          "sz::generic",
		Preallocate:   true,
		RandomAccess:  true,
		ResumeSupport: savior.ResumeSupportEntry,
	},
}

Functions

func EnsureDeps

func EnsureDeps(consumer *state.Consumer) error

func FeaturesByExtension

func FeaturesByExtension(ext string) savior.ExtractorFeatures

Query extractor features by file extension. ext must include the dot, for example ".rar"

func FeaturesByFormat

func FeaturesByFormat(format string) savior.ExtractorFeatures

Query extractor features by format (as reported by 7-zip)

func GetLib

func GetLib(consumer *state.Consumer) (*sz.Lib, error)

Types

type SzExtractor

type SzExtractor interface {
	savior.Extractor
	GetFormat() string
}

func New

func New(file eos.File, consumer *state.Consumer) (SzExtractor, error)

Directories

Path Synopsis
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.

Jump to

Keyboard shortcuts

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