Documentation
¶
Overview ¶
Package ed2k implements the eD2k hash.
Index ¶
Constants ¶
The blocksize of eD2k in bytes.
View Source
const ChunkSize = 9728000
The chunk size of eD2k in bytes.
The size of an eD2k checksum in bytes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
A Hash is an implementation of hash.Hash for eD2k.
func (*Hash) BlockSize ¶
BlockSize returns the hash's underlying block size. The Write method must be able to accept any amount of data, but it may operate more efficiently if all writes are a multiple of the block size.
func (*Hash) Sum ¶
Sum appends the current hash to b and returns the resulting slice. It does not change the underlying hash state.
Click to show internal directories.
Click to hide internal directories.