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
↓ 2 callers
Method
encrypt_page
(&mut self)
crates/qmdb/src/indexer/hybrid/file_writer.rs:85
↓ 2 callers
Method
end
Stop metering and log the result.
crates/qmdb-common/src/utils/instruction_meter.rs:88
↓ 2 callers
Function
entry_equal
Compares a serialized entry with an entry struct for equality. This function is useful for testing and validation purposes. # Arguments `bz` - The
crates/qmdb-common/src/entryfile/entry.rs:654
↓ 2 callers
Method
entry_files
Returns reference to entry files.
crates/qmdb/src/entryfile/uring_reader.rs:243
↓ 2 callers
Method
eq_impl
Internal comparison implementation. If `compare_old_value` is true, compares old_value fields. If `compare_old_value` is false, requires other's old_v
crates/qmdb-common/src/utils/changeset.rs:230
↓ 2 callers
Method
fill_buf
(&mut self)
crates/qmdb/src/indexer/hybrid/file_reader.rs:53
↓ 2 callers
Method
fill_compact_chan
Fills the compaction channel with active entries that need to be rewritten. This method implements the core compaction logic: 1. Monitors entry count
crates/qmdb/src/compactor.rs:162
↓ 2 callers
Method
fill_kv
Generate key-value pair for a given number
bench/src/speed/hover_gen.rs:66
↓ 2 callers
Method
fill_range
Fill the 'start', 'end', 'lead_byte', 'next_idx' and 'valid' fields of Range.
crates/qmdb/src/indexer/kvlist.rs:153
↓ 2 callers
Method
finalize
Finalize the hash and write any number of output bytes.
crates/qmdb-common/tests/reference_impl.rs:363
↓ 2 callers
Method
find_kv
(&self, k: u64, v6: &[u8; 6])
crates/qmdb/src/indexer/memidx.rs:155
↓ 2 callers
Function
first_8_words
(compression_output: [u32; 16])
crates/qmdb-common/tests/reference_impl.rs:113
↓ 2 callers
Function
flush
(tid: usize)
bench/src/speed/qmdb.rs:52
↓ 2 callers
Method
flush
(&mut self)
crates/qmdb/src/entryfile/entryfile.rs:475
↓ 2 callers
Method
flush
Flushes buffered data and updates the Merkle tree. This method implements the core shard flushing logic: 1. Buffer Processing: - Reads buffered entri
crates/qmdb/src/flusher/shard.rs:181
↓ 2 callers
Method
flush_internal
Internal flush with EOF padding option. When `eof=true`, padding bytes are added to align the file size to 512 bytes. This is only used internally du
crates/hpfile/src/lib.rs:364
↓ 2 callers
Method
for_each_adjacent_value
(&self, mut k80: [u8; 10], k: u64, mut access: F)
crates/qmdb/src/indexer/memidx.rs:350
↓ 2 callers
Method
for_each_adjacent_value
(&self, idx: u64, k_in: u64, mut access: F)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:94
↓ 2 callers
Method
for_each_value
(&self, h: i64, k80: &[u8])
crates/qmdb/src/indexer/hybrid/mod.rs:335
↓ 2 callers
Method
for_each_value
(&self, idx: u64, k_in: u64, mut access: F)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:79
↓ 2 callers
Method
for_each_value_warmup
(&self, h: i64, k80: &[u8])
crates/qmdb/src/indexer/memidx.rs:631
↓ 2 callers
Method
free_slot_count
(&self)
crates/qmdb/src/tasks/bptaskhub.rs:38
↓ 2 callers
Method
gen_block
(&mut self)
bench/src/speed/test_gen.rs:98
↓ 2 callers
Method
gen_block_random
Generate a hover block with random key selection - `op_type`: OP_DELETE, OP_CREATE, OP_WRITE, or OP_READ - `base`: Base offset for key numbers - `ran
bench/src/speed/hover_gen.rs:149
↓ 2 callers
Method
gen_block_strided
Generate a hover block with sequential stride pattern - `op_type`: OP_DELETE, OP_CREATE, OP_WRITE, or OP_READ - `base`: Base offset for key numbers -
bench/src/speed/hover_gen.rs:89
↓ 2 callers
Method
gen_subblock
Generate a subblock containing `count` tasks.
bench/src/speed/test_gen.rs:254
↓ 2 callers
Function
generate_test_block
(test_gen: &mut TestGenV1, start_height: usize, end_height: usize)
crates/qmdb/examples/v1_refdbfuzz/main.rs:50
↓ 2 callers
Method
get
(&self, key: &K)
crates/qmdb-common/src/utils/simplemap.rs:156
↓ 2 callers
Method
get
Gets the value at the specified index in the logical array. This method uses binary search to efficiently find the most recent change point before or
crates/qmdb-common/src/merkletree/diffmap.rs:107
↓ 2 callers
Method
get_active_bit
Checks if a specific entry is active # Arguments `sn` - Serial number of the entry to check # Returns true if the entry is active, false otherwise
crates/qmdb/src/merkletree/tree.rs:705
↓ 2 callers
Method
get_and_remove_buf
(&self, idx: i64, remove_idx: i64)
crates/qmdb/src/entryfile/entrybuffer.rs:191
↓ 2 callers
Method
get_bit
Gets the active status of a bit at the specified offset # Arguments `offset` - The bit position to check (0-2047) # Returns true if the bit is activ
crates/qmdb-common/src/merkletree/activebits.rs:64
↓ 2 callers
Method
get_buffer
Gets a buffer from the pool, or allocates a new one if pool is empty. This is more efficient than `alloc_buffer()` for high-frequency reads because i
crates/qmdb/src/entryfile/uring_reader.rs:554
↓ 2 callers
Method
get_edge_nodes
(&self, end: u64, max_level: i64)
crates/qmdb/src/merkletree/tree.rs:296
↓ 2 callers
Method
get_file_ref
(&self, offset: i64)
crates/qmdb/src/entryfile/entryfile.rs:338
↓ 2 callers
Method
get_first_entry_pos
Gets the position of the first entry in a twig For twig_id > 0, this is the end position of the last entry in the previous twig. # Arguments `twig_i
crates/qmdb/src/merkletree/twigfile.rs:162
↓ 2 callers
Method
get_first_range
(&self)
crates/qmdb/src/indexer/kvlist.rs:119
↓ 2 callers
Method
get_from_file
(&mut self, height: i64, k: u64, get_prev: bool)
crates/qmdb/src/indexer/hybrid/unit.rs:342
↓ 2 callers
Method
get_hash_root
Gets the root hash of a twig # Arguments `twig_id` - ID of the twig `buf` - Buffer to store the root hash
crates/qmdb/src/merkletree/twigfile.rs:268
↓ 2 callers
Method
get_hashes_by_pos_list
Gets hash values for a list of positions in the tree # Arguments `pos_list` - List of (level, position) pairs to get hashes for # Returns List of ha
crates/qmdb/src/merkletree/tree.rs:975
↓ 2 callers
Function
get_k
(x: u128)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:25
↓ 2 callers
Function
get_key_pos
(arr: &[u8])
crates/qmdb/src/indexer/hybrid/def.rs:27
↓ 2 callers
Method
get_last_cursor
(&self)
crates/qmdb/src/indexer/kvlist.rs:109
↓ 2 callers
Function
get_left_path
Generates the left (entry) side of a proof path using a hash function # Arguments `sn` - Serial number of the entry `get_hash` - Function that return
crates/qmdb/src/merkletree/singleproof.rs:384
↓ 2 callers
Method
get_prev_entry
get the previous entry from the previous KH2E record
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:249
↓ 2 callers
Method
get_rand_kv_with_recent
(&mut self, keys: &mut HashSet<u32>)
crates/qmdb/src/test_helper/testgen.rs:303
↓ 2 callers
Method
get_range_from
(&self, mut curr_idx: usize)
crates/qmdb/src/indexer/kvlist.rs:139
↓ 2 callers
Method
get_root_hash
(&self)
crates/qmdb/src/merkletree/tree.rs:991
↓ 2 callers
Method
get_sub_job_count
Gets the total number of sub-jobs. # Returns Number of sub-jobs in this job
crates/qmdb/src/prefetcher/dioprefetcher.rs:438
↓ 2 callers
Method
get_tasks_change_sets
(&self, idx: usize)
crates/qmdb/src/tasks/tasksmanager.rs:33
↓ 2 callers
Method
get_twig_file_size
Gets the twig file size for a shard. # Arguments `shard_id` - ID of the shard # Returns The current twig file size # Performance - Direct access -
crates/qmdb/src/metadb.rs:662
↓ 2 callers
Method
get_value_start_and_len
Returns the starting position and length of the value in the serialized data. # Returns A tuple of (start_position, value_length).
crates/qmdb-common/src/entryfile/entry.rs:474
↓ 2 callers
Method
get_youngest_twig_id
Gets the youngest twig ID for a shard. # Arguments `shard_id` - ID of the shard # Returns The ID of the most recently created twig # Performance -
crates/qmdb/src/metadb.rs:862
↓ 2 callers
Method
has_create_del
(&self)
crates/qmdb-common/src/utils/changeset.rs:516
↓ 2 callers
Method
has_free_buf
Checks if there are free buffers available. # Returns `true` if there are free buffers, `false` otherwise
crates/qmdb/src/prefetcher/dioprefetcher.rs:1285
↓ 2 callers
Method
incr_hit_wo
(&self, nop: bool)
crates/qmdb/src/indexer/hybrid/index_cache.rs:70
↓ 2 callers
Method
insert_extra_data
Inserts extra data at a specific block height. # Arguments `height` - Block height to insert at `data` - Extra data to insert
crates/qmdb/src/lib.rs:1427
↓ 2 callers
Method
is_empty
Checks if the list is empty. # Returns `true` if the list contains no elements, `false` otherwise.
crates/qmdb/src/utils/shortlist.rs:192
↓ 2 callers
Method
is_empty
(&self)
crates/qmdb/src/merkletree/singleproof.rs:45
↓ 2 callers
Method
is_empty
Returns whether the entry is empty.
crates/qmdb-common/src/entryfile/entry.rs:441
↓ 2 callers
Method
is_empty
(&self)
crates/qmdb-common/src/merkletree/singleproof.rs:48
↓ 2 callers
Function
is_first_task_in_block
(task_id: i64)
crates/qmdb-common/src/task/taskid.rs:83
↓ 2 callers
Method
key_exists
(&self, idx: u64, k_in: u64, file_pos: i64)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:135
↓ 2 callers
Method
len
(&self)
crates/qmdb-common/src/indexer/utils/poslist.rs:23
↓ 2 callers
Method
load_value
(&self)
crates/hpfile/src/file_slots.rs:159
↓ 2 callers
Method
log_system_stats
(&mut self)
bench/src/speed/results.rs:244
↓ 2 callers
Function
lookup_entry_in_pos_list
Looks up an entry in a position list that satisfies the given predicate. # Arguments `pos_list` - Iterator of positions to search through `read_entry
crates/qmdb-common/src/mutator/entrymutator.rs:343
↓ 2 callers
Method
lookup_with_prev
( &mut self, height: i64, warmup: bool, k: u64, )
crates/qmdb/src/indexer/hybrid/index_cache.rs:134
↓ 2 callers
Function
make_hash
(x: u8)
crates/qmdb/src/merkletree/multiproof.rs:155
↓ 2 callers
Function
mdbx_update_kv
(env: &mut Environment, task_list: &Vec<RwLock<Option<SimpleTask>>>)
bench/src/speed/mdbx.rs:82
↓ 2 callers
Method
merge
(&mut self, f_rd: &mut FileReader, f_wr: &mut FileWriter, _idx: usize)
crates/qmdb/src/indexer/hybrid/unit.rs:47
↓ 2 callers
Method
new512bits
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:35
↓ 2 callers
Method
next
(&mut self)
crates/qmdb-common/src/utils/simplemap.rs:268
↓ 2 callers
Function
num_to_k80
(num: u64)
crates/qmdb/examples/v4_memidx.rs:34
↓ 2 callers
Method
ops_per_block
Calculate ops per block for hover operations
bench/src/speed/hover_gen.rs:61
↓ 2 callers
Method
print_summary
(&self)
bench/src/speed/results.rs:462
↓ 2 callers
Method
produce
Sends an item to the consumer. # Arguments `t` - Item to send # Returns Ok(()) if successful, or SendError if the channel is disconnected
crates/qmdb/src/utils/ringchannel.rs:67
↓ 2 callers
Method
prune_head
Prunes the head of the twig file # Arguments `off` - Offset to prune from # Panics If the prune operation fails
crates/qmdb/src/merkletree/twigfile.rs:334
↓ 2 callers
Function
put_entry_in_cache
Puts an entry in the cache. # Arguments `updater` - Updater instance `file_pos` - Position in the file `entry` - Entry to cache `dsn_list` - List of
crates/qmdb/src/updater.rs:1248
↓ 2 callers
Function
read_all
(file: Arc<RwLock<TempFile>>)
crates/qmdb/src/indexer/hybrid/file_writer.rs:119
↓ 2 callers
Method
read_blocking
Submits a read request and blocks until completion (sync version for regular threads). # Returns - `Ok(0)`: Error (I/O failure or insufficient bytes
crates/qmdb/src/entryfile/uring_reader.rs:363
↓ 2 callers
Method
read_entry_with_uring
(&self, file_pos: i64, buf: &mut ReadBuf)
crates/qmdb/src/entryfile/entryfile.rs:170
↓ 2 callers
Function
read_metainfo_from_file
(path: &str)
crates/qmdb/src/test_helper/mod.rs:26
↓ 2 callers
Method
read_page
(&self, page_id: usize, page: &mut [u8])
crates/qmdb/src/indexer/hybrid/unit.rs:415
↓ 2 callers
Method
read_previous_entry
( &mut self, height: i64, key_hash: &Hash32, read_buf: &mut ReadBuf, p
crates/qmdb/src/updater.rs:1093
↓ 2 callers
Method
read_prior_entry
( &mut self, height: i64, key_hash: &Hash32, read_buf: &mut ReadBuf, p
crates/qmdb/src/updater.rs:1116
↓ 2 callers
Method
read_value_from_previous_block
(&self, key: &[u8], out: &mut ReadBuf)
crates/qmdb/src/seqads.rs:258
↓ 2 callers
Method
receive_returned
Receives a returned item from the consumer. # Returns Ok(T) if an item was received, or RecvError if the channel is disconnected
crates/qmdb/src/utils/ringchannel.rs:75
↓ 2 callers
Method
record
(&mut self, count: u64, elapsed: Duration, db_entries: u64)
bench/src/speed/results.rs:61
↓ 2 callers
Method
recycle_job_object
Recycles a job object after completion. # Arguments `job` - Job to recycle `bz` - Buffer containing entry data
crates/qmdb/src/prefetcher/dioprefetcher.rs:683
↓ 2 callers
Method
reinit
Reinitializes this sub-job with new values. # Arguments `sub_id` - New sub-job ID `shard_id` - New shard ID `file_pos` - New file position
crates/qmdb/src/prefetcher/dioprefetcher.rs:1212
↓ 2 callers
Function
rocksdb_update_kv
(rks_db: &mut RocksDB, task_list: &[RwLock<Option<SimpleTask>>])
bench/src/speed/rocksdb.rs:170
↓ 2 callers
Method
run
(&mut self)
crates/qmdb/src/indexer/hybrid/mod.rs:84
↓ 2 callers
Function
run_hover_correctness_sampling
( table_id: usize, max_num: u64, _test_gen: &mut TestGenV2, model: &BitmapModel, randsrc:
bench/src/bin/speed.rs:605
↓ 2 callers
Method
run_task
Runs a task job for prefetching. # Arguments `task_id` - ID of the task to process
crates/qmdb/src/prefetcher/dioprefetcher.rs:261
↓ 2 callers
Method
segment_size
(&self)
crates/qmdb/src/entryfile/entryfile.rs:89
↓ 2 callers
Method
send_returned
Returns an item back to the producer. # Arguments `t` - Item to return # Panics If the channel is disconnected
crates/qmdb/src/utils/ringchannel.rs:99
↓ 2 callers
Method
serialize
(&self)
crates/qmdb/src/entryfile/entrycache.rs:83
↓ 2 callers
Method
set_curr_height
Sets the current block height. # Arguments `h` - New block height # State Changes - Updates current height - Triggers pruning checks - Updates histo
crates/qmdb/src/metadb.rs:619
↓ 2 callers
Method
set_edge_nodes
Sets the edge nodes for a shard's Merkle tree. # Arguments `shard_id` - ID of the shard `bz` - Edge node bytes to store # State Changes - Updates ed
crates/qmdb/src/metadb.rs:830
← previous
next →
401–500 of 1,374, ranked by callers