github.com/artpar/rclone@v1.67.3/backend/hidrive/hidrivehash/internal/internal.go (about)

     1  // Package internal provides utilities for HiDrive.
     2  package internal
     3  
     4  import (
     5  	"encoding"
     6  	"hash"
     7  )
     8  
     9  // LevelHash is an internal interface for level-hashes.
    10  type LevelHash interface {
    11  	encoding.BinaryMarshaler
    12  	encoding.BinaryUnmarshaler
    13  	hash.Hash
    14  	// Add takes a position-embedded checksum and adds it to the level.
    15  	Add(sum []byte)
    16  	// IsFull returns whether the number of checksums added to this level reached its capacity.
    17  	IsFull() bool
    18  }