Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LayerZero-Labs/qmdb
/ functions
Functions
1,374 in github.com/LayerZero-Labs/qmdb
⨍
Functions
1,374
◇
Types & classes
185
Function
main
()
crates/qmdb/examples/v1_refdbfuzz/main.rs:37
Function
main
()
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:521
Function
main
()
bench/src/bin/test_gen_bench.rs:10
Function
main
()
bench/src/bin/crud.rs:75
Function
main
()
bench/src/bin/speed.rs:86
Method
merge_kv
(k: u64, v6: &[u8; 6])
crates/qmdb/src/indexer/memidx.rs:65
Method
new
Create a `HPFile` with a directory. If this directory was used by an old HPFile, the old HPFile must have the same `segment_size` as this one. # Para
crates/hpfile/src/lib.rs:92
Method
new
Create a `RoHPFile` bound to a directory with files named as `fileId-segmentSize`. It opens files lazily when reading crosses into a new segment.
crates/hpfile/src/readonly.rs:21
Method
new
()
crates/hpfile/src/file_slots.rs:134
Method
new
Creates a new Config instance with custom values. # Arguments `dir` - Base directory for database files `wrbuf_size` - Size of the write buffer in by
crates/qmdb/src/config.rs:211
Method
new
Creates a new sequential wrapper around `AdsWrap`.
crates/qmdb/src/seqads.rs:53
Method
new
Creates a new AdsCore instance with the given configuration. # Arguments `task_hub` - Task hub for managing concurrent operations `config` - Database
crates/qmdb/src/lib.rs:276
Method
new
Creates a new MetaInfo instance with default values. Initializes a fresh metadata state with: - Zero block height - Empty root hashes - Zero file siz
crates/qmdb/src/metadb.rs:159
Method
new
Creates a new Updater instance for managing shard updates. # Arguments `shard_id` - ID of the shard this updater manages `task_hub` - Task hub for co
crates/qmdb/src/updater.rs:262
Method
new
Creates a new Compactor instance. # Arguments `shard_id` - ID of the shard to compact `compact_trigger` - Minimum entries needed to trigger compactio
crates/qmdb/src/compactor.rs:125
Method
new
()
crates/qmdb/src/prefetcher/dioprefetcher.rs:63
Method
new
Creates a new JobManager. # Arguments `_` - Unused uring count parameter (for API compatibility) `_` - Unused uring size parameter (for API compatibi
crates/qmdb/src/prefetcher/uniprefetcher.rs:43
Method
new
Creates a new empty cache shard.
crates/qmdb/src/utils/bytescache.rs:100
Method
new
Creates a new empty `ShortList`. The list is initialized in array mode with no elements.
crates/qmdb/src/utils/shortlist.rs:50
Method
new
Creates a new Galois LFSR with the specified seed and bit count. # Arguments `seed` - Initial state of the LFSR (must be non-zero and less than 2^bit
crates/qmdb/src/utils/lfsr.rs:44
Method
new
(size: usize)
crates/qmdb/src/utils/bitmap.rs:15
Method
new
()
crates/qmdb/src/utils/activebits.rs:17
Method
new
()
crates/qmdb/src/utils/writebatch.rs:9
Method
new
( buffer_size: usize, segment_size: i64, dir_name: String, cipher: Option<Aes2
crates/qmdb/src/entryfile/entryfile.rs:34
Method
new
()
crates/qmdb/src/entryfile/entrycache.rs:19
Method
new
Creates a new MultiEntryFileUringReader and its receiver. Call `receiver.start(entry_files)` to spawn the io_uring worker thread. # Arguments `entry_
crates/qmdb/src/entryfile/uring_reader.rs:220
Method
new
()
crates/qmdb/src/indexer/memidx.rs:250
Method
new
(idx: usize, range: Range)
crates/qmdb/src/indexer/kvlist.rs:59
Method
new
(file: Arc<RwLock<TempFile>>, cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/file_writer.rs:21
Method
new
(hi_arc: Arc<HybridIndexer>, merge_thres: usize)
crates/qmdb/src/indexer/hybrid/mod.rs:56
Method
new
(cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/file_reader.rs:24
Method
new
(ifof: Arc<RwLock<TempFile>>, cipher: Arc<Option<Aes256Gcm>>)
crates/qmdb/src/indexer/hybrid/unit.rs:30
Method
new
(fname: String)
crates/qmdb/src/indexer/hybrid/tempfile.rs:17
Method
new
()
crates/qmdb/src/indexer/hybrid/ref_unit.rs:43
Method
new
()
crates/qmdb/src/indexer/hybrid/overlay.rs:20
Method
new
Creates a new empty proof path
crates/qmdb/src/merkletree/singleproof.rs:158
Method
new
Creates a new NodePos from a raw 64-bit position value
crates/qmdb/src/merkletree/tree.rs:90
Method
new
Creates a new twig file with the specified parameters # Arguments `buffer_size` - Size of I/O buffer in bytes `segment_size` - Maximum size of each f
crates/qmdb/src/merkletree/twigfile.rs:90
Method
new
Creates a new BarrierSet for coordinating the specified number of shards. # Arguments `n` - Number of shards to synchronize # Performance - Constant
crates/qmdb/src/flusher/barrier_set.rs:19
Method
new
Creates a new FlusherShard instance. # Arguments `tree` - Merkle tree for this shard `oldest_active_sn` - Oldest active serial number `shard_id` - ID
crates/qmdb/src/flusher/shard.rs:78
Method
new
Creates a new Flusher instance to coordinate multi-shard operations. # Arguments `shards` - Vector of shard-specific flushers `meta` - Reference to t
crates/qmdb/src/flusher/flusher.rs:213
Method
new
(tasks: Vec<RwLock<Option<T>>>)
crates/qmdb/src/tasks/tasksmanager.rs:24
Method
new
()
crates/qmdb/src/tasks/bptaskhub.rs:27
Method
new
(changesets: Vec<ChangeSet>)
crates/qmdb/src/tasks/helpers.rs:36
Method
new
(file_name: &str, seed: &str)
crates/qmdb/src/test_helper/randsrc.rs:16
Method
new
(randsrc: RandSrc)
crates/qmdb/src/test_helper/testgen.rs:177
Method
new
(randsrc: RandSrc)
crates/qmdb/examples/v1_refdbfuzz/main.rs:256
Method
new
(name: &str, config: &Config)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:32
Method
new
Creates a new empty changeset with pre-allocated capacity.
crates/qmdb-common/src/utils/changeset.rs:271
Method
new
Creates a new OpRecord with the specified operation type. # Arguments `op_type` - Type of operation to record # Returns A new OpRecord initialized w
crates/qmdb-common/src/utils/mod.rs:126
Method
new
(bytes: Hash32)
crates/qmdb-common/src/utils/hasher.rs:19
Method
new
(name: String)
crates/qmdb-common/src/utils/instruction_meter.rs:45
Method
new
()
crates/qmdb-common/src/entryfile/readbuf.rs:11
Method
new
()
crates/qmdb-common/src/task/single_cs_task.rs:33
Method
new
Creates a new empty twig with all fields initialized to zero
crates/qmdb-common/src/merkletree/twig.rs:107
Method
new
Create a new EntryMutator with the given storage and indexer
crates/qmdb-common/src/mutator/entrymutator.rs:95
Method
new
(key_words: [u32; 8], chunk_counter: u64, flags: u32)
crates/qmdb-common/tests/reference_impl.rs:175
Method
new
( randsrc: &mut RandSrc, entry_count: u64, cset_in_task: usize, task_in_block:
bench/src/speed/test_gen.rs:35
Method
new
Create a new HoverGen with the given parameters
bench/src/speed/hover_gen.rs:46
Method
new
(window_type: WindowType)
bench/src/speed/metrics.rs:24
Method
new
(name: &str, dir: &str)
bench/src/speed/rocksdb.rs:22
Method
new
Create a new streaming test generator
bench/src/speed/streaming_gen.rs:155
Method
new
(entry_count: u64, entry_count_wo_del: u64)
bench/src/speed/shuffle_param.rs:14
Method
new
(count: u64, elapsed: f64, throughput: f64)
bench/src/speed/results.rs:18
Method
new
(entry_count: u64, entry_count_wo_del: u64)
bench/src/speed/correctness.rs:73
Method
new_blank
Creates a new empty Merkle tree with the specified configuration # Arguments `shard_id` - ID of the shard this tree instance will manage `buffer_size
crates/qmdb/src/merkletree/tree.rs:571
Method
new_derive_key
Construct a new `Hasher` for the key derivation function. The context string should be hardcoded, globally unique, and application-specific.
crates/qmdb-common/tests/reference_impl.rs:306
Method
new_internal
(key_words: [u32; 8], flags: u32)
crates/qmdb-common/tests/reference_impl.rs:282
Method
new_keyed
Construct a new `Hasher` for the keyed hash function.
crates/qmdb-common/tests/reference_impl.rs:298
Method
new_uninit
(size: usize)
crates/hpfile/src/aligned_buf.rs:99
Method
new_uninit
()
crates/qmdb/src/entryfile/ro_entry_cache.rs:28
Method
new_uninit
()
crates/qmdb/src/entryfile/entrycache.rs:33
Method
new_uninit
Creates a new empty changeset without pre-allocated capacity.
crates/qmdb-common/src/utils/changeset.rs:283
Method
new_zeroed
(size: usize)
crates/hpfile/src/aligned_buf.rs:84
Method
next
Advances the iterator and returns the next element. # Returns `Some((index, value))` if there are more elements `None` if iteration is complete
crates/qmdb/src/utils/shortlist.rs:216
Method
next
(&mut self)
crates/qmdb/src/merkletree/tree.rs:1121
Method
next
(&mut self)
crates/qmdb-common/src/entryfile/entry.rs:609
Method
next
(&mut self)
crates/qmdb-common/src/indexer/utils/poslist.rs:89
Method
next_kh
(&mut self, kh: [u8; 32])
crates/qmdb-common/src/entryfile/helpers.rs:33
Function
nth_at_level_from_level0nth
(level0nth: u64, level: u8)
crates/qmdb-common/src/def.rs:335
Method
num_txn_in_blk
(&self)
bench/src/speed/test_gen.rs:70
Method
open_internal
Internal method to open or create the metadata database. # Arguments `dir_name` - Directory path for the metadata files `cipher` - Optional AES-GCM ci
crates/qmdb/src/metadb.rs:378
Method
parse_file_id_and_segment_size
(path: &Path)
crates/hpfile/src/watcher.rs:218
Method
parse_filename
(segment_size: i64, file_name: &str)
crates/hpfile/src/lib.rs:162
Method
parse_filename
(segment_size: i64, file_name: &str)
crates/hpfile/src/readonly.rs:47
Method
percentile
Computes a specific percentile latency (0.0 to 100.0)
bench/src/speed/metrics.rs:145
Method
pos
Creates a NodePos from a level and node index
crates/qmdb/src/merkletree/tree.rs:95
Method
pos2idx
(file_pos: i64)
crates/qmdb/src/entryfile/entrycache.rs:39
Method
print
Prints all fields in a human-friendly format. - Byte arrays are rendered in hexadecimal - Large byte vectors show length and a short hex preview
crates/qmdb/src/metadb.rs:180
Method
print
(&self)
crates/qmdb/src/indexer/kvlist.rs:92
Method
print
(&self)
crates/qmdb/src/indexer/hybrid/index_cache.rs:25
Method
print
Prints a debug representation of the tree structure This method is primarily used for debugging and development purposes to visualize the current sta
crates/qmdb/src/merkletree/tree.rs:1156
Function
print_edge_nodes
(shard_id: usize, edge_nodes: &[EdgeNode])
crates/qmdb/src/merkletree/tree.rs:136
Function
print_metainfo_side_by_side
(file_a: &str, file_b: &str)
crates/qmdb/src/test_helper/mod.rs:59
Method
print_nodes
(&self)
crates/qmdb/src/merkletree/tree.rs:188
Function
print_set
(hash_set: &HashSet<i64>)
crates/qmdb/src/indexer/memidx.rs:430
Method
print_twig_roots
(&self)
crates/qmdb/src/merkletree/tree.rs:178
Method
prune_head
(&self, off: i64)
crates/qmdb/src/entryfile/entryfile.rs:357
Function
ptr_short_key
(key: &usize)
crates/qmdb-common/src/utils/short_key.rs:182
Method
read_all_entries
(&self, out: SyncSender<Vec<u8>>)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:144
← previous
next →
1,001–1,100 of 1,374, ranked by callers