Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checksum ¶
type Checksum struct { RChecksum int64 `json:"r_checksum"` MD5Checksum [16]byte `json:"md5_checksum"` Start int64 `json:"start"` End int64 `json:"end"` Content []byte `json:"content"` }
Checksum
type SigGenerator ¶
type SigGenerator struct {
// contains filtered or unexported fields
}
func NewSigGenerator ¶
func NewSigGenerator(reader bufio.Reader, chunkSize int64) *SigGenerator
func (*SigGenerator) GenSig ¶
func (sg *SigGenerator) GenSig() *Signature
func (*SigGenerator) NextChunkHashes ¶
func (sg *SigGenerator) NextChunkHashes() (int64, [16]byte, error)
Click to show internal directories.
Click to hide internal directories.