Documentation
¶
Index ¶
Constants ¶
View Source
const ( BucketSize = 4096 EntriesPerBucket = 128 EntrySize = BucketSize / EntriesPerBucket EntKeyBytes = 24 // with 24 bytes hash (192 bits, plenty enough to not get collisions), 8 for user offset BucketHeaderEntries = 1 BucketUserEntries = EntriesPerBucket - BucketHeaderEntries BucketBloomFilterSize = EntrySize BucketBloomFilterEntries = BucketBloomFilterSize * 8 MeanEntriesPerBucket = EntriesPerBucket/2 + EntriesPerBucket/4 LevelFactor = 16384 // could be 24576, but we want to avoid deeper level misses )
parameters dedicated by hardware / math
View Source
const BsstMagic = "BSST\x00\x00\x01\x00"
Variables ¶
View Source
var BsstCIDSampleSize = 1024
Functions ¶
This section is empty.
Types ¶
type BSST ¶
type BSST struct { CreateSample []multihash.Multihash // contains filtered or unexported fields }
type BSSTHeader ¶
type BSSTHeader struct { L0Buckets int64 BucketSize int64 Entries int64 Salt [32]byte Levels int64 LevelFactor int64 Finalized bool }
func (*BSSTHeader) MarshalCBOR ¶
func (t *BSSTHeader) MarshalCBOR(w io.Writer) error
func (*BSSTHeader) UnmarshalCBOR ¶
func (t *BSSTHeader) UnmarshalCBOR(r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.