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
↓ 1 callers
Method
gen_block
(&mut self, height: i64)
crates/qmdb/examples/v1_refdbfuzz/main.rs:281
↓ 1 callers
Method
gen_blocks
(&mut self, epoch_id: usize, blocks: &mut Vec<Block>)
crates/qmdb/src/test_helper/testgen.rs:218
↓ 1 callers
Method
gen_cset
(&mut self)
crates/qmdb/src/test_helper/testgen.rs:288
↓ 1 callers
Method
gen_cset
(&mut self)
crates/qmdb/examples/v1_refdbfuzz/main.rs:304
↓ 1 callers
Method
gen_cset_random_with_keys
Generate a changeset with random key selection, returning affected keys
bench/src/speed/hover_gen.rs:240
↓ 1 callers
Method
gen_cset_strided_with_keys
Generate a changeset with strided key selection, returning affected keys
bench/src/speed/hover_gen.rs:198
↓ 1 callers
Method
gen_del
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:373
↓ 1 callers
Method
gen_miss
(&mut self)
crates/qmdb/src/test_helper/testgen.rs:429
↓ 1 callers
Method
gen_op
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:442
↓ 1 callers
Method
gen_op
(&mut self, cset: &mut ChangeSet, keys: &mut HashSet<usize>)
crates/qmdb/examples/v1_refdbfuzz/main.rs:331
↓ 1 callers
Method
gen_read
(&mut self)
crates/qmdb/src/test_helper/testgen.rs:408
↓ 1 callers
Method
gen_task
(&mut self, count: usize)
crates/qmdb/examples/v1_refdbfuzz/main.rs:295
↓ 1 callers
Method
gen_task
(&mut self)
bench/src/speed/test_gen.rs:303
↓ 1 callers
Method
gen_write
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:357
↓ 1 callers
Function
generate_mt_for_youngest_twig
()
crates/qmdb/tests/test_tree.rs:598
↓ 1 callers
Function
generate_test_blocks
()
crates/qmdb/examples/v1_refdbfuzz/main.rs:63
↓ 1 callers
Method
get
(&self, n: usize)
crates/qmdb/src/utils/activebits.rs:24
↓ 1 callers
Method
get
(&self, idx: usize)
crates/qmdb-common/src/indexer/utils/poslist.rs:30
↓ 1 callers
Method
get_active_bits_mut
Gets a mutable reference to the active bits for a specific twig # Arguments `twig_id` - ID of the twig to get active bits for # Returns Mutable refe
crates/qmdb/src/merkletree/tree.rs:693
↓ 1 callers
Method
get_buf_mut
Gets a mutable reference to a specific buffer. # Arguments `id` - ID of the buffer `offset` - Offset within the buffer # Returns A mutable slice of
crates/qmdb/src/prefetcher/dioprefetcher.rs:1320
↓ 1 callers
Method
get_change_sets
(&self, task_id: i64)
crates/qmdb/src/tasks/bptaskhub.rs:106
↓ 1 callers
Method
get_deactived_sn
Returns the nth deactivated serial number. # Arguments `n` - The index of the deactivated serial number to retrieve. # Returns The deactivated ser
crates/qmdb-common/src/entryfile/entry.rs:561
↓ 1 callers
Method
get_edge_nodes
Gets the edge nodes for a shard's Merkle tree. # Arguments `shard_id` - ID of the shard # Returns Vector of edge node bytes # Performance - Direct
crates/qmdb/src/metadb.rs:816
↓ 1 callers
Method
get_entry_cache
(&self, height: i64)
crates/qmdb/src/tasks/bptaskhub.rs:94
↓ 1 callers
Method
get_entry_file
Gets the entry file for a specific shard. # Arguments `shard_id` - ID of the shard # Returns Reference to the shard's entry file # Thread Safety -
crates/qmdb/src/flusher/flusher.rs:310
↓ 1 callers
Method
get_entry_files
Gets a reference to all entry files. # Returns Vector of references to entry files
crates/qmdb/src/lib.rs:436
↓ 1 callers
Function
get_file_as_byte_vec
Reads an entire file into a byte vector. # Arguments `filename` - Path to the file to read # Returns The file contents as a byte vector # Performan
crates/qmdb/src/metadb.rs:333
↓ 1 callers
Method
get_first_twig_at_height
Gets the first twig ID and entry file size at a specific height. # Arguments `shard_id` - ID of the shard `height` - Block height # Returns A tuple
crates/qmdb/src/metadb.rs:739
↓ 1 callers
Method
get_hash_node_in_ignore_range
Computes a node hash in the middle levels from its leaf nodes # Arguments `twig_id` - ID of the twig containing the node `hash_id` - ID of the node t
crates/qmdb/src/merkletree/twigfile.rs:212
↓ 1 callers
Method
get_hash_of_root_hash
Gets the hash of root hashes at a specific height. # Arguments `height` - Block height # Returns The combined hash of all shard root hashes # Perfo
crates/qmdb/src/metadb.rs:923
↓ 1 callers
Function
get_in_null_mt
(idx: usize)
crates/qmdb-common/src/merkletree/null.rs:158
↓ 1 callers
Function
get_init_data
Initializes the global null data structures used by twigs Returns a tuple containing: 1. A null Merkle tree for a twig 2. A null twig instance 3. An
crates/qmdb-common/src/merkletree/null.rs:565
↓ 1 callers
Method
get_last_range
(&self)
crates/qmdb/src/indexer/kvlist.rs:123
↓ 1 callers
Method
get_last_throughput
(&self)
bench/src/speed/results.rs:81
↓ 1 callers
Function
get_left_path_in_mem
Generates the left side of a proof path from an in-memory Merkle tree # Arguments `mt4twig` - The in-memory Merkle tree `sn` - Serial number of the e
crates/qmdb/src/merkletree/singleproof.rs:413
↓ 1 callers
Function
get_left_path_on_disk
Generates the left side of a proof path from on-disk twig data # Arguments `tf` - The twig file to read from `twig_id` - ID of the twig containing th
crates/qmdb/src/merkletree/singleproof.rs:426
↓ 1 callers
Method
get_max_level
(&self)
crates/qmdb/src/merkletree/tree.rs:983
↓ 1 callers
Method
get_next_serial_num
Gets the next serial number for a shard. # Arguments `shard_id` - ID of the shard # Returns The next available serial number # Performance - Direct
crates/qmdb/src/metadb.rs:846
↓ 1 callers
Function
get_null_mt_hash
Get the null hash for a node in the left tree at a specific level and position # Arguments `level` - The level in the tree (0-11) `nth` - The positio
crates/qmdb-common/src/merkletree/twig.rs:93
↓ 1 callers
Method
get_oldest_active
(&mut self, shard_id: usize)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:480
↓ 1 callers
Method
get_oldest_active_file_pos
Gets the oldest active file position for a shard. # Arguments `shard_id` - ID of the shard # Returns The oldest active file position # Performance
crates/qmdb/src/metadb.rs:988
↓ 1 callers
Method
get_or_insert_with
Get an existing value, or insert a new one if not present. Returns a `SlotGuard` for zero-refcount-overhead access. Use `get_or_insert_with_arc` if y
crates/hpfile/src/file_slots.rs:420
↓ 1 callers
Method
get_proof
Generates a Merkle proof for a specific entry # Arguments `sn` - Serial number of the entry to generate proof for # Returns The proof path, or an er
crates/qmdb/src/merkletree/singleproof.rs:291
↓ 1 callers
Method
get_proof_req_senders
Gets the proof request senders for all shards. This method provides channels for submitting proof requests to each shard, allowing concurrent proof g
crates/qmdb/src/flusher/flusher.rs:241
↓ 1 callers
Method
get_proofs
Gets proofs for multiple serial numbers in one request. # Arguments `shard_id` - ID of the shard containing the entries `sns` - Serial numbers to gen
crates/qmdb/src/lib.rs:399
↓ 1 callers
Function
get_rand_op
(randsrc: &mut RandSrc, rfu: &RefUnit)
crates/qmdb/examples/v3_indexer.rs:63
↓ 1 callers
Method
get_read_count
(&mut self)
crates/qmdb/examples/v1_refdbfuzz/main.rs:351
↓ 1 callers
Method
get_recent_rand_key
(&mut self)
crates/qmdb/src/test_helper/testgen.rs:312
↓ 1 callers
Function
get_right_path
Generates the right (active bits) side of a proof path # Arguments `twig` - The twig containing the entry `active_bits` - Active bits status for the
crates/qmdb/src/merkletree/singleproof.rs:337
↓ 1 callers
Method
get_task
Construct a `SimpleTask` for task index `i`.
crates/qmdb/src/test_helper/testgen.rs:105
↓ 1 callers
Method
get_tmp_file
(&self)
crates/qmdb/src/indexer/hybrid/file_writer.rs:40
↓ 1 callers
Method
get_total_latency
Returns the total latency recorded
bench/src/speed/metrics.rs:174
↓ 1 callers
Method
get_total_samples
Returns the total number of samples recorded
bench/src/speed/metrics.rs:169
↓ 1 callers
Method
get_uint16
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:112
↓ 1 callers
Method
get_uint8
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:107
↓ 1 callers
Method
get_upper_path_and_root
Gets the path and root hash for a specific twig in the upper tree # Arguments `twig_id` - ID of the twig to get path for # Returns A tuple of (proof
crates/qmdb/src/merkletree/singleproof.rs:227
↓ 1 callers
Method
get_uring_id
select a io_uring in a pseudo-random way # Arguments `uring_count` - Total number of io_uring instances # Returns The io_uring instance ID for this
crates/qmdb/src/prefetcher/dioprefetcher.rs:1242
↓ 1 callers
Method
grow
Grow the slots array to accommodate more values. This creates a new array with doubled capacity and remaps all existing values.
crates/hpfile/src/file_slots.rs:300
↓ 1 callers
Method
handle_proof_req
Processes pending proof requests. This method implements the proof request handling logic: 1. Request Processing: - Checks for pending requests - Gen
crates/qmdb/src/flusher/shard.rs:119
↓ 1 callers
Function
hash32_short_key
(key: &[u8])
crates/qmdb-common/src/utils/short_key.rs:167
↓ 1 callers
Function
hash_eq
(a: &[u8; 32], b: &[u8; 32])
crates/qmdb-common/src/merkletree/singleproof.rs:118
↓ 1 callers
Method
hash_iter
Creates an iterator over hash values for a list of positions # Arguments `pos_list` - List of (level, position) pairs to iterate over # Returns An i
crates/qmdb/src/merkletree/tree.rs:1004
↓ 1 callers
Method
incr_hit_wi
(&self, nop: bool)
crates/qmdb/src/indexer/hybrid/index_cache.rs:55
↓ 1 callers
Method
incr_miss_wi
(&self, nop: bool)
crates/qmdb/src/indexer/hybrid/index_cache.rs:60
↓ 1 callers
Method
incr_miss_wo
(&self, nop: bool)
crates/qmdb/src/indexer/hybrid/index_cache.rs:75
↓ 1 callers
Method
incr_none_wi
(&self, nop: bool)
crates/qmdb/src/indexer/hybrid/index_cache.rs:65
↓ 1 callers
Method
incr_none_wo
(&self, nop: bool)
crates/qmdb/src/indexer/hybrid/index_cache.rs:80
↓ 1 callers
Method
incr_wr_bytes
(&self, n: usize)
crates/qmdb/src/indexer/hybrid/index_cache.rs:49
↓ 1 callers
Function
init
(rfu: &mut RefUnit, dut: &mut IndexerToTest)
crates/qmdb/examples/v3_indexer.rs:48
↓ 1 callers
Function
init
(mdbx_dir: &str)
bench/src/speed/mdbx.rs:16
↓ 1 callers
Method
init
Initializes the metadata database. # State Changes - Resets block height - Clears root hashes - Initializes counters - Prepares storage # Performanc
crates/qmdb/src/metadb.rs:1018
↓ 1 callers
Method
init_db
(&self)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:52
↓ 1 callers
Function
init_n_twigs
(tree: &mut Tree, n: u64)
crates/qmdb/tests/test_tree.rs:621
↓ 1 callers
Function
init_twigs_and_upper_nodes
(tree: &mut Tree, n: u64)
crates/qmdb/tests/test_tree.rs:670
↓ 1 callers
Method
initialize_within
(&mut self, src: usize, len: usize)
crates/qmdb-common/src/entryfile/readbuf.rs:65
↓ 1 callers
Method
into_ext_entry_file
(self, ef: &Arc<EntryFile>, shard_id: usize)
crates/qmdb/src/entryfile/entrybuffer.rs:56
↓ 1 callers
Method
is_aligned
(&self)
crates/hpfile/src/aligned_buf.rs:177
↓ 1 callers
Function
is_bit_set
(value: u64, position: i64)
crates/qmdb/src/utils/intset.rs:39
↓ 1 callers
Function
is_compactible
Determines if a range of entries should be compacted based on utilization metrics. This function evaluates whether compaction would improve storage e
crates/qmdb-common/src/def.rs:239
↓ 1 callers
Method
is_compactible
Checks if compaction should be triggered. # Returns `true` if compaction criteria are met, `false` otherwise # Criteria - Entry count threshold - St
crates/qmdb/src/updater.rs:856
↓ 1 callers
Method
is_compactible
(&self)
crates/qmdb/src/indexer/memidx.rs:318
↓ 1 callers
Method
is_compactible
if the utilization ratio is too slow, it's compactible
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:397
↓ 1 callers
Method
is_empty
Checks if the twig file is empty # Returns true if the file is empty, false otherwise
crates/qmdb/src/merkletree/twigfile.rs:110
↓ 1 callers
Method
is_enabled
(&self)
bench/src/speed/streaming_gen.rs:77
↓ 1 callers
Function
is_end_task_in_block
(task_id: i64)
crates/qmdb-common/src/task/taskid.rs:91
↓ 1 callers
Method
is_sentry_entry
Returns whether this entry is a sentry entry.
crates/qmdb-common/src/entryfile/entry.rs:544
↓ 1 callers
Method
is_updated
Query helpers for future sampling/checking logic. Note: we intentionally do **not** track OP_CREATE in the stable range [0, entry_count_wo_del). The
bench/src/speed/correctness.rs:142
↓ 1 callers
Method
len
(&self)
crates/qmdb-common/src/entryfile/readbuf.rs:19
↓ 1 callers
Method
load_file
( &mut self, file: Arc<RwLock<TempFile>>, start: usize, end: usize, ov
crates/qmdb/src/indexer/hybrid/file_reader.rs:38
↓ 1 callers
Method
load_meta_info
(&mut self, meta_bz: Vec<u8>)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:71
↓ 1 callers
Method
load_mt_for_non_youngest_twig
Loads the Merkle tree for a non-youngest twig # Arguments `twig_id` - ID of the twig to load
crates/qmdb/src/merkletree/tree.rs:954
↓ 1 callers
Method
log_cpu_stats
(&mut self)
bench/src/speed/results.rs:389
↓ 1 callers
Method
log_db_space_usage
(&mut self)
bench/src/speed/results.rs:272
↓ 1 callers
Method
log_disk_stats
(&mut self)
bench/src/speed/results.rs:340
↓ 1 callers
Method
log_io_stats
(&mut self)
bench/src/speed/results.rs:305
↓ 1 callers
Method
log_memory_usage
(&mut self)
bench/src/speed/results.rs:256
↓ 1 callers
Method
log_system_setup
(&mut self)
bench/src/speed/results.rs:233
↓ 1 callers
Method
lookup
(&self, shard_id: usize, file_pos: i64, buf: &mut ReadBuf)
crates/qmdb/src/entryfile/ro_entry_cache.rs:108
↓ 1 callers
Method
lookup_adjacent_entry
( &mut self, ebw: &mut Guard, height: i64, key_hash: &Hash32, read_buf
crates/qmdb/src/updater.rs:379
↓ 1 callers
Method
lookup_entry
( &mut self, ebw: &mut Guard, height: i64, key_hash: &Hash32, read_buf
crates/qmdb/src/updater.rs:358
← previous
next →
601–700 of 1,374, ranked by callers