Versions in this module Expand all Collapse all v0 v0.0.2 Jun 21, 2023 Changes in this version + const HashIndexEntrySize + const HashMagicNumber + const HashMagicNumberBE + const HashMetadataPageType + const HashOffIndexPageType + const HashOffPageSize + const HashPageType + const HashUnsortedPageType + const NoEncryptionAlgorithm + const OverflowPageType + const PageHeaderSize + func HashPageValueContent(ctx context.Context, db *os.File, pageData []byte, hashPageIndex uint16, ...) ([]byte, error) + func HashPageValueIndexes(data []byte, entries uint16, swapped bool) ([]uint16, error) + type BerkeleyDB struct + HashMetadata *HashMetadataPage + func Open(path string) (*BerkeleyDB, error) + func (db *BerkeleyDB) Read(ctx context.Context) <-chan dbi.Entry + type GenericMetadataPage struct + EncryptionAlg uint8 + Flags uint32 + Free uint32 + KeyCount uint32 + LSN [8]byte + LastPageNo uint32 + Magic uint32 + MetaFlags uint8 + NParts uint32 + PageNo uint32 + PageSize uint32 + PageType uint8 + RecordCount uint32 + UniqueFileID [19]byte + Unused1 uint8 + Version uint32 + func ParseGenericMetadataPage(data []byte) (*GenericMetadataPage, error) + type HashMetadata struct + CharKeyHash uint32 + FillFactor uint32 + HighMask uint32 + LowMask uint32 + MaxBucket uint32 + NumKeys uint32 + type HashMetadataPage struct + Swapped bool + func ParseHashMetadataPage(data []byte) (*HashMetadataPage, error) + type HashOffPageEntry struct + Length uint32 + PageNo uint32 + PageType uint8 + Unused [3]byte + func ParseHashOffPageEntry(data []byte, swapped bool) (*HashOffPageEntry, error) + type HashPage struct + FreeAreaOffset uint16 + LSN [8]byte + NextPageNo uint32 + NumEntries uint16 + PageNo uint32 + PageType uint8 + PreviousPageNo uint32 + TreeLevel uint8 + func ParseHashPage(data []byte, swapped bool) (*HashPage, error) + type PageType = uint8