hasher

package
v0.0.0-...-69b8586 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: BSD-2-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HashtypeCrc32 = HashType(iota)
	HashtypeSha256
	HashtypeSha1
	HashtypeMd5
	HashtypeAccurateRipV1
	HashtypeAccurateRipV1Start
	HashtypeAccurateRipV2
	HashtypeAccurateRipV2Start
)
View Source
const BytesPerSector = 2352
View Source
const CDChannels = 2
View Source
const DataTrackGap = 11400
View Source
const Int16SamplesPerSector = BytesPerSector / (2 * CDChannels)
View Source
const SectorsPerSecond = 75
View Source
const TocPregap = 150

Variables

This section is empty.

Functions

func NewAccurateRipV1

func NewAccurateRipV1(offset uint32) hash.Hash32

func NewAccurateRipV2

func NewAccurateRipV2(offset uint32) hash.Hash32

Types

type HashType

type HashType int

type Hasher

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

func NewHasher

func NewHasher(channel format.AnalyzerChannel, hashType HashType) (h *Hasher)

func (*Hasher) GetChannels

func (h *Hasher) GetChannels() int

func (*Hasher) GetDuration

func (h *Hasher) GetDuration() time.Duration

func (*Hasher) GetHashType

func (h *Hasher) GetHashType() HashType

func (*Hasher) GetResult

func (h *Hasher) GetResult() []byte

func (*Hasher) GetSampleCount

func (h *Hasher) GetSampleCount() int

func (*Hasher) GetSampleRate

func (h *Hasher) GetSampleRate() int

func (*Hasher) GetWaitGroup

func (h *Hasher) GetWaitGroup() *sync.WaitGroup

func (*Hasher) Wait

func (h *Hasher) Wait()

Jump to

Keyboard shortcuts

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