archive

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Crc = crc.NewTable(&crc.Parameters{
		Width:      32,
		Polynomial: 0x04c11db7,
		Init:       0xffffffff,
	})
)

Functions

func GetCrc

func GetCrc(s string) uint32

func ToArchivePath added in v0.4.0

func ToArchivePath(s string) string

Types

type Info added in v0.8.0

type Info struct {
	UncompressedSize     uint32
	UncompressedChecksum []byte

	CompressedSize     uint32
	CompressedChecksum []byte
}

func (Info) VerifyCompressed added in v0.8.1

func (info Info) VerifyCompressed(file *os.File) error

func (Info) VerifyUncompressed added in v0.8.1

func (info Info) VerifyUncompressed(file *os.File) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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