Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChunkLookupSlice ¶
type ChunkLookupSlice struct {
// contains filtered or unexported fields
}
func NewChunkLookupSlice ¶
func NewChunkLookupSlice(file io.ReadSeeker, chunkSize int64, weakChecksum hash.Hash, strongChecksum hash.Hash) (*ChunkLookupSlice, error)
func (ChunkLookupSlice) GetStrongChecksum ¶
func (s ChunkLookupSlice) GetStrongChecksum() []byte
func (ChunkLookupSlice) GetWeakChecksum ¶
func (s ChunkLookupSlice) GetWeakChecksum() []byte
Directories ¶
Path | Synopsis |
---|---|
Package chunks provides the basic structure for a pair of the weak and strong checksums.
|
Package chunks provides the basic structure for a pair of the weak and strong checksums. |
package filechecksum provides the FileChecksumGenerator, whose main responsibility is to read a file, and generate both weak and strong checksums for every block.
|
package filechecksum provides the FileChecksumGenerator, whose main responsibility is to read a file, and generate both weak and strong checksums for every block. |
Package index provides the functionality to describe a reference 'file' and its contents in terms of the weak and strong checksums, in such a way that you can check if a weak checksum is present, then check if there is a strong checksum that matches.
|
Package index provides the functionality to describe a reference 'file' and its contents in terms of the weak and strong checksums, in such a way that you can check if a weak checksum is present, then check if there is a strong checksum that matches. |
rollsum provides an implementation of a rolling checksum - a checksum that's efficient to advance a byte or more at a time.
|
rollsum provides an implementation of a rolling checksum - a checksum that's efficient to advance a byte or more at a time. |
Click to show internal directories.
Click to hide internal directories.