Discover Packages
github.com/AkiraXie/go-cqhttp-btree-manager
btree
package
Version:
v0.0.0-...-a8f546d
Opens a new window with list of versions in this module.
Published: Aug 12, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package btree provide a disk-based btree
DB ...
Create creates a database
Open opens an existed btree file
Close closes the database
Delete remove item with the given key 'hash' from the database file.
func (d *DB ) Foreach(iter func(key [16]byte , value []byte ))
Foreach iterates over all items in the database file.
Get look up item with the given key 'hash' in the database file. Length of the
item is stored in 'len'. Returns a pointer to the contents of the item.
The returned pointer should be released with free() after use.
Insert a new item with key 'hash' with the contents in 'data' to the
database file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.