Documentation
¶
Index ¶
- type DecodeData
- func (md *DecodeData) GetBytes() []byte
- func (md *DecodeData) GetCollisionCount() int64
- func (md *DecodeData) MatchFound() bool
- func (md *DecodeData) ModulusScanFileBytes(modSize uint32, blocklist string, hashlist string, modRemainder string)
- func (md *DecodeData) ModulusScanFileBytesOrig(modSize uint32, blocklist string, hashlist string, modRemainder string, ...)
- func (md *DecodeData) ModulusScanFileBytesRun(blockNumber int64, blocksize int64, c *sync.WaitGroup)
- func (md *DecodeData) Println(v ...interface{})
- func (md *DecodeData) Printlog(v ...interface{})
- func (md *DecodeData) ResetMatchFound()
- func (md *DecodeData) StopScan()
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) GetCollisionCount ¶
func (md *DecodeData) GetCollisionCount() int64
get the modScan collision count
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) ResetMatchFound ¶
func (md *DecodeData) ResetMatchFound()
reset the modScan match found
Click to show internal directories.
Click to hide internal directories.