modScanFile

package
v0.0.0-...-6c90f4e Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeData

type DecodeData struct {
	Result []byte

	Logfile *log.Logger
	// contains filtered or unexported fields
}

modScan flag struct

func Init

func Init(blocksize int64, modsize int64, blockNumber int64, thread int64, threadCount int64, mux *mdUnzipMutex.FileMutex, hcl *mdHashContextList.HashContextList) (md *DecodeData)

Init returns a new modScan object

func (*DecodeData) GetBytes

func (md *DecodeData) GetBytes() []byte

get the modScan byteblock

func (*DecodeData) GetCollisionCount

func (md *DecodeData) GetCollisionCount() int64

get the modScan collision count

func (*DecodeData) MatchFound

func (md *DecodeData) MatchFound() bool

get the modScan match found

func (*DecodeData) ModulusScanFileBytes

func (md *DecodeData) ModulusScanFileBytes(modSize uint32, blocklist string, hashlist string, modRemainder string)

run a parallel modulus scan on a mdzip file block

func (*DecodeData) ModulusScanFileBytesOrig

func (md *DecodeData) ModulusScanFileBytesOrig(modSize uint32, blocklist string, hashlist string, modRemainder string, blocksize int64, c *sync.WaitGroup)

run a parallel modulus scan on a mdzip file block there was a timing issue when I tried to split this into two functions

func (*DecodeData) ModulusScanFileBytesRun

func (md *DecodeData) ModulusScanFileBytesRun(blockNumber int64, blocksize int64, c *sync.WaitGroup)

func (*DecodeData) Println

func (md *DecodeData) Println(v ...interface{})

write to log and standard out

func (*DecodeData) Printlog

func (md *DecodeData) Printlog(v ...interface{})

write to the log

func (*DecodeData) ResetMatchFound

func (md *DecodeData) ResetMatchFound()

reset the modScan match found

func (*DecodeData) StopScan

func (md *DecodeData) StopScan()

stop the modScan

Jump to

Keyboard shortcuts

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