engine

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockEngine

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

func NewBlockEngine

func NewBlockEngine(blockSize int, numCpu int) *BlockEngine

func (*BlockEngine) ProcessFile

func (blockEngine *BlockEngine) ProcessFile(blockCipher ciphers.BlockCipher, mode ciphers.CipherMode, inFilePath, outFilePath string) error

type Job

type Job struct {
	Offset int64
}

func NewJob

func NewJob(offset int64) Job

type Worker

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

func NewWorker

func NewWorker(workerID int, buffers [][]byte, blockCipher ciphers.BlockCipher, mode ciphers.CipherMode, inFile *os.File, outFile *os.File, jobs <-chan Job, errors chan<- error, waitGroup *sync.WaitGroup) *Worker

func (*Worker) Start

func (w *Worker) Start()

Jump to

Keyboard shortcuts

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