MCPcopy Create free account

hub / github.com/LayerZero-Labs/qmdb / functions

Functions1,374 in github.com/LayerZero-Labs/qmdb

↓ 5 callersMethodlen
(&self)
crates/qmdb-common/tests/reference_impl.rs:186
↓ 5 callersMethodlevel
Returns the level of this node (0-255)
crates/qmdb/src/merkletree/tree.rs:100
↓ 5 callersMethodload_file
load a new file and start writing to it
crates/qmdb/src/indexer/hybrid/file_writer.rs:45
↓ 5 callersFunctionmake_cache_pos
Creates a cache position by combining buffer index and offset. # Arguments `idx` - The buffer index `offset` - The offset within the buffer `value_l
crates/qmdb/src/utils/bytescache.rs:43
↓ 5 callersMethodmove_backward
(&self, cursor: &mut KVCursor)
crates/qmdb/src/indexer/kvlist.rs:233
↓ 5 callersMethodoutput
(&self)
crates/qmdb-common/tests/reference_impl.rs:226
↓ 5 callersMethodprune_nodes
(&mut self, start: u64, end: u64, youngest_twig_id: u64)
crates/qmdb/src/merkletree/tree.rs:270
↓ 5 callersFunctionrand_between
(randsrc: &mut RandSrc, min: usize, max: usize)
bench/src/bin/speed.rs:934
↓ 5 callersMethodread_entry
Reads an entry from the cache, update buffer, or entry file. # Arguments `ebw` - Entry buffer writer guard `shard_id` - ID of the shard containing th
crates/qmdb/src/updater.rs:325
↓ 5 callersFunctionrecover_tree
Recovers a complete tree from persisted state This function rebuilds a tree by: 1. Creating a new blank tree 2. Restoring file sizes 3. Recovering in
crates/qmdb/src/merkletree/recover.rs:338
↓ 5 callersMethodresize
(&mut self, new_len: usize)
crates/hpfile/src/aligned_buf.rs:186
↓ 5 callersMethodrun_in_shard
Applies operations for a specific shard in order.
crates/qmdb-common/src/utils/changeset.rs:521
↓ 5 callersMethodset_entry_file_size
Sets the entry file size for a shard. # Arguments `shard_id` - ID of the shard `size` - New file size # State Changes - Updates file size - Affects
crates/qmdb/src/metadb.rs:676
↓ 5 callersMethodset_node
(&mut self, pos: NodePos, node: [u8; 32])
crates/qmdb/src/merkletree/tree.rs:258
↓ 5 callersMethodset_twig_file_size
Sets the twig file size for a shard. # Arguments `shard_id` - ID of the shard `size` - New file size # State Changes - Updates file size - Affects p
crates/qmdb/src/metadb.rs:646
↓ 5 callersMethodstart_block
( &self, height: i64, tasks_in_blk: Arc<TasksManager<T>>, cache: Arc<EntryCach
crates/qmdb/src/tasks/bptaskhub.rs:63
↓ 5 callersMethodsync_l2
Synchronizes a level 2 (9) node in the active bits Merkle tree # Arguments `pos` - Position of the node to sync (0-1)
crates/qmdb-common/src/merkletree/twig.rs:149
↓ 5 callersMethodversion
Returns the version number of this entry.
crates/qmdb-common/src/entryfile/entry.rs:527
↓ 5 callersMethodwrite
(&mut self, e: &[u8; L], first_k_list: &mut (Vec<u64>, Vec<u32>))
crates/qmdb/src/indexer/hybrid/file_writer.rs:50
↓ 4 callersMethod_read_bytes_at
Reads bytes at a cached position and passes them to the provided function. # Arguments `cache_key` - The key to look up `access` - A function that w
crates/qmdb/src/utils/bytescache.rs:200
↓ 4 callersMethod_read_entry
(&self, off: i64, buf: &mut [u8])
crates/qmdb/src/entryfile/entryfile.rs:290
↓ 4 callersMethodappend_twig
Appends a twig's Merkle tree nodes to the file # Arguments `m_tree` - Array of node hashes for the entire twig `last_entry_end_pos` - End position of
crates/qmdb/src/merkletree/twigfile.rs:124
↓ 4 callersMethodas_slice
(&self)
crates/hpfile/src/aligned_buf.rs:151
↓ 4 callersFunctionbitmask
(position: i64)
crates/qmdb/src/utils/intset.rs:8
↓ 4 callersFunctionblake2b_hash_inplace
(output: &mut Hash32, input: &[u8])
crates/qmdb-common/src/utils/hasher.rs:86
↓ 4 callersMethodblock_in_round
(&self)
bench/src/speed/test_gen.rs:83
↓ 4 callersFunctioncheck_hash_consistency
Performs a complete consistency check of the entire tree This function verifies: 1. All active twigs and their active bits trees 2. All upper tree no
crates/qmdb/src/merkletree/check.rs:230
↓ 4 callersMethodclear
(&mut self)
crates/hpfile/src/aligned_buf.rs:218
↓ 4 callersMethodcompact
(&mut self, ebw: &mut Guard, r: Option<&Box<OpRecord>>, comp_idx: usize)
crates/qmdb/src/updater.rs:790
↓ 4 callersFunctioncreate_cipher
()
crates/qmdb/src/test_helper/cipher.rs:4
↓ 4 callersMethodcreate_kv
Creates a new key-value pair in the database. # Arguments `ebw` - Entry buffer writer guard `key_hash` - Hash of the key to create `key` - Key to cre
crates/qmdb/src/updater.rs:705
↓ 4 callersMethoddeactive_entry
Marks an entry as inactive # Arguments `sn` - Serial number of the entry to deactivate
crates/qmdb/src/merkletree/tree.rs:753
↓ 4 callersFunctionequal_entry
(e: &Entry, s_list: &[u64], entry_bz: &EntryBz)
crates/qmdb/src/entryfile/entryfile.rs:532
↓ 4 callersMethodfind
(&self, key: &[u8; N_PLUS1])
crates/qmdb/src/indexer/kvlist.rs:270
↓ 4 callersMethodfor_each_value
(&self, k: u64, access: F)
crates/qmdb/src/indexer/memidx.rs:343
↓ 4 callersMethodgen_block_as_subblocks
Generate a whole block and split it into several subblocks of `subblock_size`. Each subblock is an `Arc<Vec<Vec<ChangeSet>>>` suitable for `Msg::Paylo
bench/src/speed/test_gen.rs:146
↓ 4 callersMethodgenerate_hover_blocks
Generate hover blocks after a population block
bench/src/speed/streaming_gen.rs:278
↓ 4 callersFunctionget_active_bits
()
crates/qmdb-common/src/merkletree/null.rs:556
↓ 4 callersMethodget_curr_height
Gets the current block height. # Returns The current block height # Performance - Direct access - No disk I/O - No synchronization
crates/qmdb/src/metadb.rs:632
↓ 4 callersMethodget_current
(&self)
crates/hpfile/src/file_slots.rs:545
↓ 4 callersMethodget_entry
get an entry from a KH2E record
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:111
↓ 4 callersMethodget_entry_bz
(&self, file_pos: i64, buf: &mut ReadBuf, use_uring: bool)
crates/qmdb/src/entryfile/entrybuffer.rs:22
↓ 4 callersMethodget_entry_cache
Gets a reference to the entry cache. # Returns Reference to the entry cache
crates/qmdb/src/prefetcher/dioprefetcher.rs:488
↓ 4 callersMethodget_file_size
(&self)
crates/qmdb/src/indexer/hybrid/file_writer.rs:36
↓ 4 callersMethodget_first_cursor
(&self)
crates/qmdb/src/indexer/kvlist.rs:103
↓ 4 callersFunctionget_null_hash_by_pos
(level: u8, nth: u64)
crates/qmdb-common/src/merkletree/null.rs:166
↓ 4 callersMethodget_single_proof
Builds a compact historical-existence proof for `sn`. - Ignores Right Path activeness checks - Produces a classic sibling-hash path suitable for veri
crates/qmdb/src/merkletree/singleproof.rs:180
↓ 4 callersMethodget_sub_job
Gets a reference to a specific sub-job. # Arguments `idx` - Index of the sub-job # Returns Reference to the requested sub-job
crates/qmdb/src/prefetcher/dioprefetcher.rs:427
↓ 4 callersFunctionget_var_u64
(data: &[u8])
crates/qmdb/src/entryfile/entrycache.rs:174
↓ 4 callersFunctionhash
(n: usize)
crates/qmdb/examples/v1_refdbfuzz/main.rs:228
↓ 4 callersFunctionhash1
(level: u8, a: &[u8])
crates/qmdb/src/merkletree/check.rs:236
↓ 4 callersFunctionheight_for_n
(n: u64)
crates/qmdb-common/src/merkletree/multiproof.rs:33
↓ 4 callersFunctionhover_execute_op
(config: HoverExecuteConfig)
bench/src/bin/speed.rs:544
↓ 4 callersMethodis_erased_value
(&self, v_in: i64)
crates/qmdb/src/indexer/hybrid/overlay.rs:27
↓ 4 callersFunctionnull_entry
Creates a null entry representing an empty entry. Null entries have empty key and value, `NULL_ENTRY_VERSION` as version, and `u64::MAX` as serial nu
crates/qmdb-common/src/entryfile/entry.rs:351
↓ 4 callersMethodon_append_entry
(&mut self, _entry: &Entry)
crates/qmdb-common/src/mutator/noop.rs:38
↓ 4 callersMethodon_deactivate_entry
(&mut self, _entry: &EntryBz)
crates/qmdb-common/src/mutator/noop.rs:39
↓ 4 callersMethodon_read_entry
(&mut self, _entry: &EntryBz)
crates/qmdb-common/src/mutator/noop.rs:37
↓ 4 callersFunctionput_var_u64
(buf: &mut Vec<u8>, n: u64)
crates/qmdb/src/entryfile/entrycache.rs:153
↓ 4 callersMethodreload_from_file
Reloads metadata from disk. This method reads both metadata files and uses the most recent valid state. If encryption is enabled, the files are decry
crates/qmdb/src/metadb.rs:431
↓ 4 callersMethodremove
(&mut self, key: &K)
crates/qmdb-common/src/utils/simplemap.rs:191
↓ 4 callersMethodroot_output_bytes
(&self, out_slice: &mut [u8])
crates/qmdb-common/tests/reference_impl.rs:146
↓ 4 callersFunctionrun_op_sequence
( label_prefix: &str, action_name: &str, op: u8, salt: u64, ops_per_block: u64, blocks
bench/src/bin/crud.rs:371
↓ 4 callersFunctionsentry_entry
Creates a sentry entry for the given shard and serial number. # Arguments `shard_id` - The shard ID (must be < `SHARD_COUNT`). `sn` - The serial num
crates/qmdb-common/src/entryfile/entry.rs:302
↓ 4 callersMethodset
(&mut self, key: K, val: V)
bench/src/speed/rocksdb.rs:98
↓ 4 callersMethodset_current_file
Set the current writable file (non-O_DIRECT). Used after inserting the latest segment via `insert()`.
crates/hpfile/src/file_slots.rs:568
↓ 4 callersMethodset_next_serial_num
Sets the next serial number for a shard. # Arguments `shard_id` - ID of the shard `sn` - Next serial number to use # State Changes - Updates serial
crates/qmdb/src/metadb.rs:876
↓ 4 callersMethodset_node_copy
(&mut self, pos: NodePos, node: &[u8; 32])
crates/qmdb/src/merkletree/tree.rs:251
↓ 4 callersMethodshould_generate_hover
Check if hover should be generated after this population block
bench/src/speed/streaming_gen.rs:392
↓ 4 callersMethodskip_tasks
(&mut self, n: u64)
bench/src/speed/test_gen.rs:289
↓ 4 callersMethodtry_get_file_ref
Try to get a reference to the file segment containing the given offset. Returns `None` if the file segment does not exist.
crates/qmdb/src/entryfile/entryfile.rs:345
↓ 4 callersMethodupdate
(&mut self, mut input: &[u8])
crates/qmdb-common/tests/reference_impl.rs:198
↓ 4 callersFunctionwyhash64
(mut x: u64)
crates/qmdb-common/src/utils/short_key.rs:106
↓ 3 callersFunction_compare_active_info
Compares active information with a record for testing. # Arguments `updater` - Updater instance `rec` - Optional operation record to compare against
crates/qmdb/src/updater.rs:894
↓ 3 callersMethod_contains
Checks if a key exists in the cache. # Arguments `cache_key` - The key to check # Returns `true` if the key exists and has a valid position, `fals
crates/qmdb/src/utils/bytescache.rs:186
↓ 3 callersMethodadd
Adds a new sub-job to this task. # Arguments `sub_id` - ID for the new sub-job `shard_id` - ID of the shard `file_pos` - Position in the entry file
crates/qmdb/src/prefetcher/dioprefetcher.rs:503
↓ 3 callersMethodadd_job
Adds a job to be processed. # Arguments `job` - Job to add `only_disk` - Whether to only read from disk
crates/qmdb/src/prefetcher/dioprefetcher.rs:746
↓ 3 callersMethodadd_op
(self, op: u8, k: &[u8], v: &[u8])
crates/qmdb-common/src/task/single_cs_task.rs:52
↓ 3 callersMethodadd_op_with_old_value
Adds an operation with both new and old values. # Arguments `op_type` - Type of operation (create, read, write, delete) `shard_id` - ID of the shard
crates/qmdb-common/src/utils/changeset.rs:393
↓ 3 callersMethodbatch_to_changeset
(&mut self, batch: &WriteBatch)
crates/qmdb/src/seqads.rs:201
↓ 3 callersFunctionbit_get
(bits: &[u8], idx: u64)
bench/src/speed/correctness.rs:28
↓ 3 callersFunctionbit_set
(bits: &mut [u8], idx: u64, value: bool)
bench/src/speed/correctness.rs:38
↓ 3 callersFunctionblake3_hash_inplace
(output: &mut Hash32, input: &[u8])
crates/qmdb-common/src/utils/hasher.rs:53
↓ 3 callersFunctionbuild_partial_merkle_tree
( n_leaves: u64, matched_nodes: &HashSet<(u8, u64)>, mut node_hash_at: F, )
crates/qmdb-common/src/merkletree/multiproof.rs:69
↓ 3 callersMethodcapacity
(&self)
crates/hpfile/src/file_slots.rs:183
↓ 3 callersMethodchaining_value
(&self)
crates/qmdb-common/tests/reference_impl.rs:136
↓ 3 callersMethodchange
(&mut self, cursor: &KVCursor, new_value: &[u8; VL])
crates/qmdb/src/indexer/kvlist.rs:212
↓ 3 callersMethodchange_kv
(&self, k80: &[u8], pos_old: i64, pos_new: i64, sn_old: u64, sn_new: u64)
crates/qmdb-common/src/mutator/entrymutator.rs:442
↓ 3 callersFunctioncheck_upper_nodes
Verifies the consistency of all upper tree nodes This function checks that all nodes in the upper levels of the tree (above twigs) have correct hash
crates/qmdb/src/merkletree/check.rs:85
↓ 3 callersMethodclear
(&self)
crates/hpfile/src/file_slots.rs:154
↓ 3 callersMethodclear
Clears all samples
bench/src/speed/metrics.rs:164
↓ 3 callersMethodclose
Closes all file handles and flushes pending writes
crates/qmdb/src/merkletree/tree.rs:641
↓ 3 callersMethodcollect_values
(&self, k_in: u64, list: &mut ShortList)
crates/qmdb/src/indexer/hybrid/overlay.rs:57
↓ 3 callersMethodcompact
deactivate and recreate an old active entry
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:428
↓ 3 callersFunctioncompress
( chaining_value: &[u32; 8], block_words: &[u32; 16], counter: u64, block_len: u32, flags:
crates/qmdb-common/tests/reference_impl.rs:74
↓ 3 callersFunctioncompute_matched_nodes
(n_leaves: u64, matched_leaf_idxs: I)
crates/qmdb-common/src/merkletree/multiproof.rs:45
↓ 3 callersFunctioncreate_test_entry_file
(dir_path: &str)
crates/qmdb/src/entryfile/uring_reader.rs:893
↓ 3 callersMethoddelete
(&mut self, key: impl Into<Box<[u8]>>)
crates/qmdb/src/utils/writebatch.rs:19
↓ 3 callersMethoddetailed_stats
Returns detailed statistics including multiple percentiles
bench/src/speed/metrics.rs:109
↓ 3 callersMethoddisk_sub_ids
(&self)
crates/qmdb/src/prefetcher/dioprefetcher.rs:446
← previousnext →201–300 of 1,374, ranked by callers