MCPcopy Create free account

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

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

↓ 8 callersMethodenumerate
(&self)
crates/qmdb-common/src/indexer/utils/poslist.rs:72
↓ 8 callersMethoderase_kv
(&mut self, k_in: u64, v_in: i64)
crates/qmdb/src/indexer/hybrid/overlay.rs:41
↓ 8 callersMethodflush
Flushes pending changes to disk. # Returns Vector of metadata updates that were flushed
crates/qmdb/src/lib.rs:1137
↓ 8 callersMethodfor_each
(&self, h: i64, op: u8, k80: &[u8])
crates/qmdb/src/indexer/memidx.rs:621
↓ 8 callersMethodfor_each_value
( &mut self, height: i64, warmup: bool, k: u64, k80: &[u8], mu
crates/qmdb/src/indexer/hybrid/unit.rs:114
↓ 8 callersFunctiong
The mixing function, G, which mixes either a column or a diagonal.
crates/qmdb-common/tests/reference_impl.rs:42
↓ 8 callersMethodget_entry_bz_at
(&mut self, file_pos: i64, buf: &mut ReadBuf)
crates/qmdb/src/entryfile/entrybuffer.rs:87
↓ 8 callersMethodget_shared
Gets a shared reference to the database. # Returns A SharedAdsWrap instance for concurrent access
crates/qmdb/src/lib.rs:1236
↓ 8 callersFunctionhash_equal
Verifies that two byte slices contain the same hash value # Arguments `tag` - A string identifier for the comparison (used in error messages) `a` - F
crates/qmdb/src/merkletree/check.rs:68
↓ 8 callersMethodinsert
(&self, shard_id: usize, file_pos: i64, entry_bz: &EntryBz)
crates/qmdb/src/entryfile/entrycache.rs:45
↓ 8 callersMethodis_empty
(&self)
crates/qmdb/src/indexer/hybrid/ref_unit.rs:53
↓ 8 callersMethodlen
Returns the number of elements in the list. # Returns The number of elements currently stored in the list.
crates/qmdb/src/utils/shortlist.rs:94
↓ 8 callersFunctionrand_between
(randsrc: &mut RandSrc, min: usize, max: usize)
crates/qmdb/examples/v1_refdbfuzz/main.rs:223
↓ 8 callersMethodread
( &'a self, buf: &'a [u8], )
crates/qmdb-common/src/utils/changeset.rs:102
↓ 8 callersMethodread_next_entry
(&mut self, mut access: F)
crates/qmdb/src/entryfile/entrybuffer.rs:283
↓ 8 callersMethodsize
(&self)
crates/qmdb/src/entryfile/entryfile.rs:79
↓ 8 callersFunctionsplit_k80
(k80: &[u8])
crates/qmdb/src/indexer/hybrid/mod.rs:38
↓ 8 callersMethodvalid
(&self)
crates/qmdb/src/indexer/kvlist.rs:63
↓ 7 callersFunctionbytes_to_edge_nodes
Deserializes a byte slice into a list of edge nodes # Arguments `bz` - Byte slice containing serialized edge nodes # Returns Vector of deserialized
crates/qmdb/src/merkletree/recover.rs:65
↓ 7 callersFunctioncheck_all_twigs
Verifies the consistency of all active twigs in the tree This function iterates through all twig shards and checks each active twig's hash relationsh
crates/qmdb/src/merkletree/check.rs:209
↓ 7 callersMethodcommit
Commits the current state to disk. This method: 1. Writes the current state to the metadata file 2. Encrypts the data if a cipher is configured 3. Up
crates/qmdb/src/metadb.rs:544
↓ 7 callersMethodflush_files
Flushes pending changes to disk and optionally deletes old twigs # Arguments `twig_delete_start` - ID of the first twig to delete `twig_delete_end` -
crates/qmdb/src/merkletree/tree.rs:837
↓ 7 callersMethodget_twig_root
(&self, n: u64)
crates/qmdb/src/merkletree/tree.rs:238
↓ 7 callersMethodget_uint64
(&mut self)
crates/qmdb/src/test_helper/randsrc.rs:122
↓ 7 callersMethodinsert
(&mut self, index: usize)
crates/qmdb/src/tasks/task_id_set.rs:13
↓ 7 callersMethodinsert_extra_data
Inserts extra data for a specific block height. # Arguments `height` - Block height to store data for `data` - Data to store # Thread Safety - Threa
crates/qmdb/src/metadb.rs:515
↓ 7 callersMethodmove_forward
(&self, cursor: &mut KVCursor)
crates/qmdb/src/indexer/kvlist.rs:221
↓ 7 callersMethodmove_range_forward
(&self, range: &mut Range)
crates/qmdb/src/indexer/kvlist.rs:169
↓ 7 callersFunctionpack_bits
(bits: &[bool])
crates/qmdb-common/src/merkletree/multiproof.rs:59
↓ 7 callersMethodput
(&mut self, key: impl Into<Box<[u8]>>, value: impl Into<Box<[u8]>>)
crates/qmdb/src/utils/writebatch.rs:15
↓ 7 callersFunctionrand_between
(randsrc: &mut RandSrc, min: usize, max: usize)
crates/qmdb/src/test_helper/testgen.rs:141
↓ 7 callersMethodread_at
Read data from file at `offset` to fill `bz`. If the target segment file has not been opened yet, it will be opened automatically. # Segment boundary
crates/hpfile/src/readonly.rs:81
↓ 7 callersFunctionround
(state: &mut [u32; 16], m: &[u32; 16])
crates/qmdb-common/tests/reference_impl.rs:53
↓ 7 callersMethodsync_mt_for_active_bits_phase1
First phase of syncing the Merkle tree for active bits # Returns A list of node IDs that need to be processed in phase 2
crates/qmdb/src/merkletree/tree.rs:877
↓ 7 callersMethodsync_mt_for_active_bits_phase2
(&mut self, mut n_list: Vec<u64>)
crates/qmdb/src/merkletree/tree.rs:393
↓ 7 callersMethodwrite_batch_sync
(&self, batch: WriteBatch)
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:65
↓ 6 callersMethodadd
(&mut self, height: i64, k: u64, prev_k: u64, list: &ShortList)
crates/qmdb/src/indexer/hybrid/index_cache.rs:97
↓ 6 callersMethodadd_kv
(&self, k80: &[u8], v_in: i64, sn: u64)
crates/qmdb/src/indexer/hybrid/mod.rs:251
↓ 6 callersFunctionappend_and_flush_entry_to_file
Appends and flushes an entry to a file. # Arguments `entry_file` - File to append to `entry` - Entry to append `dsn_list` - List of deactivated seria
crates/qmdb/src/updater.rs:1228
↓ 6 callersMethodappend_entry
Appends a new entry to the tree # Arguments `entry_bz` - The entry to append # Returns The offset of the appended entry in the entry file, or an err
crates/qmdb/src/merkletree/tree.rs:764
↓ 6 callersMethodas_mut_slice
(&mut self)
crates/qmdb-common/src/entryfile/readbuf.rs:27
↓ 6 callersMethodat
(&self, cursor: &KVCursor)
crates/qmdb/src/indexer/kvlist.rs:204
↓ 6 callersFunctionbuild_test_tree
( dir_name: &str, deact_sn_list: &Vec<u64>, count_before: i32, count_after: i32, )
crates/qmdb/src/merkletree/helpers.rs:42
↓ 6 callersFunctioncalc_max_level
Calculates the maximum level in the Merkle tree based on the youngest twig ID. This function determines how many levels are needed in the Merkle tree
crates/qmdb-common/src/def.rs:290
↓ 6 callersMethodchange_kv
(&mut self, k_in: u64, v_old: i64, v_new: i64)
crates/qmdb/src/indexer/hybrid/overlay.rs:49
↓ 6 callersFunctionchange_range_in_mt_for_youngest_twig
(tree: &mut Tree, start: usize, end: usize)
crates/qmdb/tests/test_tree.rs:608
↓ 6 callersMethodclear
Clears this task job for reuse. Resets: - Read counts - Cache - Task ID - Sub-job count
crates/qmdb/src/prefetcher/dioprefetcher.rs:521
↓ 6 callersMethodclear
(&self, n: usize)
crates/qmdb/src/utils/activebits.rs:42
↓ 6 callersMethodclear_touched_pos
Clears the set of touched positions
crates/qmdb/src/merkletree/tree.rs:737
↓ 6 callersFunctioncreate_temp_file
(name: &str)
crates/qmdb/src/indexer/hybrid/file_writer.rs:115
↓ 6 callersMethodcur_record
(&self)
crates/qmdb/src/indexer/hybrid/file_reader.rs:63
↓ 6 callersFunctionentry_to_vec
Converts an entry to a vector of bytes. This is a convenience function that allocates a new vector and serializes the entry into it. # Arguments `e
crates/qmdb-common/src/entryfile/entry.rs:633
↓ 6 callersMethodevict_twigs
( &mut self, n_list: Vec<u64>, twig_evict_start: u64, twig_evict_end: u64,
crates/qmdb/src/merkletree/tree.rs:373
↓ 6 callersMethodfill_kv
(&self, num: u64, k: &mut [u8], v: &mut [u8])
bench/src/speed/test_gen.rs:311
↓ 6 callersMethodflush
flush buf and stop writing to the current file
crates/qmdb/src/indexer/hybrid/file_writer.rs:72
↓ 6 callersMethodget
(&self, k80: &[u8])
crates/qmdb/src/indexer/hybrid/mod.rs:406
↓ 6 callersMethodget_bytes
(&mut self, n: usize)
crates/qmdb/src/test_helper/randsrc.rs:79
↓ 6 callersMethodget_id
(&self)
crates/hpfile/src/file_slots.rs:142
↓ 6 callersMethodget_inputs
(&self, k80: &[u8], v: i64)
crates/qmdb/src/indexer/memidx.rs:563
↓ 6 callersMethodget_metadb
Gets a reference to the metadata database. # Returns Reference to the metadata database
crates/qmdb/src/lib.rs:948
↓ 6 callersMethodlookup
Looks up cached bytes by key and passes them to the provided function. # Arguments `cache_key` - The key to look up `idx` - The shard index to use `
crates/qmdb/src/utils/bytescache.rs:287
↓ 6 callersMethodmove_range_backward
(&self, range: &mut Range)
crates/qmdb/src/indexer/kvlist.rs:182
↓ 6 callersFunctionpermute
(m: &mut [u32; 16])
crates/qmdb-common/tests/reference_impl.rs:66
↓ 6 callersMethodpruned_before
(&self)
crates/qmdb/src/entryfile/entryfile.rs:95
↓ 6 callersFunctionput_bytes
(batch: &mut WriteBatch, key: &[u8], value: &[u8])
crates/qmdb/src/seqads.rs:325
↓ 6 callersMethodstart_block
(&mut self, height: i64, tx_count: usize)
crates/qmdb/src/seqads.rs:68
↓ 6 callersMethodstart_block
Starts processing a new block. # Arguments `height` - Block height to process `tasks_manager` - Manager for block tasks # Returns A tuple containing
crates/qmdb/src/lib.rs:1188
↓ 6 callersFunctionto_hex
(bytes: &[u8])
crates/qmdb/src/test_helper/mod.rs:51
↓ 6 callersMethodtruncate
(&self, size: i64)
crates/qmdb/src/entryfile/entryfile.rs:349
↓ 6 callersFunctionwords_from_little_endian_bytes
(bytes: &[u8], words: &mut [u32])
crates/qmdb-common/tests/reference_impl.rs:117
↓ 5 callersMethodadd_entry
( &mut self, batch: &mut WriteBatchWithTransaction<false>, key_hash: &[u8; 32],
crates/qmdb/examples/v1_refdbfuzz/refdb.rs:461
↓ 5 callersMethodallocated_size
(&self)
crates/hpfile/src/aligned_buf.rs:127
↓ 5 callersMethodappend
(&mut self, offsets_idx: &mut usize, last_k: &mut u64, k: u64, v6: &[u8; 6])
crates/qmdb/src/indexer/memidx.rs:100
↓ 5 callersMethodappend_entry
(&mut self, ebw: &mut Guard, entry: &Entry, deactivated_sns: &[u64])
crates/qmdb/src/updater.rs:354
↓ 5 callersMethodas_mut_slice
(&mut self)
crates/hpfile/src/aligned_buf.rs:159
↓ 5 callersMethodclear_bit
Clears a bit to inactive (0) at the specified offset # Arguments `offset` - The bit position to clear (0-2047) # Panics Panics if offset is greater
crates/qmdb-common/src/merkletree/activebits.rs:43
↓ 5 callersMethodclose
(&self)
crates/qmdb/src/entryfile/entryfile.rs:353
↓ 5 callersMethodcontains
(&self, id: i64)
crates/hpfile/src/file_slots.rs:400
↓ 5 callersMethodcopy_within
(&mut self, src: R, dest: usize)
crates/hpfile/src/aligned_buf.rs:197
↓ 5 callersMethodcreate
(self, k: &[u8], v: &[u8])
crates/qmdb-common/src/task/single_cs_task.rs:40
↓ 5 callersFunctioncreate_seqads_instance
()
crates/qmdb/src/seqads.rs:313
↓ 5 callersFunctiondecrypt
(cipher: &Option<Aes256Gcm>, nonce: i64, bz: &mut [u8])
crates/qmdb/src/entryfile/entryfile.rs:371
↓ 5 callersMethoddsn_iter
Returns an iterator over the deactivated serial numbers. # Returns A `DSNIter` that yields (index, serial_number) pairs.
crates/qmdb-common/src/entryfile/entry.rs:573
↓ 5 callersMethodend_block
(&mut self, compact_done_pos: i64, compact_done_sn: u64, sn_end: u64)
crates/qmdb/src/entryfile/entrybuffer.rs:75
↓ 5 callersFunctionfetch_entry_to_cache
Fetches an entry and stores it in the cache. # Arguments `update_buffer` - Buffer containing recent updates `entry_file` - File containing persisted
crates/qmdb/src/prefetcher/uniprefetcher.rs:100
↓ 5 callersMethodfind_slot
(&self, key: &K)
crates/qmdb-common/src/utils/simplemap.rs:105
↓ 5 callersFunctionflip_active_bits_every_n
(tree: &mut Tree, n: usize)
crates/qmdb/tests/test_tree.rs:631
↓ 5 callersMethodflush
Flush the remained data in `buffer` into file system # Parameters - `buffer`: the write buffer, which is used by the client to call `append`. # Ret
crates/hpfile/src/lib.rs:354
↓ 5 callersMethodget_entry
(&self, id: i64)
crates/hpfile/src/file_slots.rs:193
↓ 5 callersMethodget_hash_by_node
Gets the hash value for a specific node # Arguments `level` - Level of the node `nth` - Position of the node at that level `cache` - Cache of previou
crates/qmdb/src/merkletree/tree.rs:1022
↓ 5 callersMethodget_hash_node
Gets a node's hash from the twig file For nodes in middle levels, computes the hash from leaf nodes. For other nodes, reads the hash directly from st
crates/qmdb/src/merkletree/twigfile.rs:285
↓ 5 callersMethodget_idx
Extract the leading 'indexing_bits' from 'elem'
crates/qmdb/src/indexer/kvlist.rs:247
↓ 5 callersFunctionget_null_mt_for_twig
()
crates/qmdb-common/src/merkletree/null.rs:151
↓ 5 callersMethodget_prev_values
(&self, k_in: u64)
crates/qmdb/src/indexer/hybrid/overlay.rs:66
↓ 5 callersMethodget_twig
(&mut self, twig_id: u64)
crates/qmdb/src/merkletree/tree.rs:233
↓ 5 callersMethodhash
Computes the hash of this entry's payload. # Returns A 32-byte hash of the entry payload.
crates/qmdb-common/src/entryfile/entry.rs:457
↓ 5 callersMethodinit
(&mut self)
crates/qmdb/src/indexer/hybrid/mod.rs:389
↓ 5 callersMethodinitialize_from
(&mut self, other: &[u8])
crates/qmdb-common/src/entryfile/readbuf.rs:47
↓ 5 callersMethodinto_iter
(self)
crates/qmdb-common/src/utils/simplemap.rs:286
↓ 5 callersMethodkeys
(&self)
crates/qmdb-common/src/utils/simplemap.rs:233
← previousnext →101–200 of 1,374, ranked by callers