MCPcopy Create free account

hub / github.com/base/triedb / functions

Functions627 in github.com/base/triedb

Methodfor_address
Creates a new [AddressPath] from an [Address].
src/path.rs:312
Methodfor_address_and_slot
Creates a new [StoragePath] from an [Address] and a [StorageKey].
src/path.rs:353
Methodfor_address_path_and_slot
(address_path: AddressPath, slot: StorageKey)
src/path.rs:360
Methodfor_address_path_and_slot_hash
(address_path: AddressPath, slot_hash: Nibbles)
src/path.rs:366
Methodfor_cell
Creates a new [Location] for a cell on the same page.
src/location.rs:20
Methodfor_page
Creates a new [Location] for a page.
src/location.rs:15
Methodfrom
(pointer: Pointer)
src/pointer.rs:97
Methodfrom
(value: u32)
src/location.rs:45
Methodfrom
(id: PageId)
src/page.rs:140
Methodfrom
(nibbles: Nibbles)
src/path.rs:201
Methodfrom
(val: Account)
src/node.rs:735
Methodfrom
(slotted_page: SlottedPage<'p>)
src/page/slotted_page.rs:142
Methodfrom
(value: u64)
src/page/state.rs:189
Methodfrom
(storage: S)
src/page/subtrie_page.rs:41
Methodfrom
(error: CellPointerError)
src/page/slotted_page/cell_pointer.rs:12
Methodfrom
(_: CorruptedMetadataError)
src/meta/error.rs:32
Functionfrom_alloy_trie_nibbles
()
src/path.rs:442
Methodfrom_bytes
(bytes: &[u8])
src/pointer.rs:69
Methodfrom_bytes
(bytes: &[u8])
src/node.rs:440
Methodfrom_bytes
(bytes: &[u8])
src/storage/value.rs:58
Methodfrom_file
(file: File)
src/page/manager/mmap.rs:35
Methodfrom_file
(file: File)
src/meta/mod.rs:393
Methodfrom_file_with_options
( opts: &PageManagerOptions, file: File, )
src/page/manager/mmap.rs:52
Methodfrom_iter
(it: I)
src/path.rs:233
Methodfrom_nibbles
(nibbles: &[u8])
src/path.rs:41
Methodfrom_ptr
Creates a `RawPageState` from a raw pointer. # Safety `ptr` must be properly aligned. `ptr` must be [valid] for reads for the whole lifetime `'a`. A
src/page/state.rs:59
Methodfrom_ptr
Constructs a new `Page` from a pointer to an *occupied* page. An error is returned if the initial state of the page is found to be unused or dirty.
src/page/page.rs:71
Methodfrom_str
(s: &str)
src/page.rs:189
Methodget
Returns the value associated with the key. # Panics Panics if the key is not 64 bytes long.
src/context.rs:38
Methodget
(&self, index: usize)
src/overlay.rs:131
Methodget_cache_storage_read
(&self)
src/metrics.rs:110
Functionget_state_root_and_account_storage_roots_with_alloy_trie
useful for debugging root hashes using alloy trie
tests/ethereum_execution_spec.rs:179
Methodget_value_ref
Get a reference to a value
src/page/slotted_page.rs:42
Functionhigher_64_nibbles
()
src/path.rs:493
Methodhigher_64_nibbles
(&self)
src/path.rs:188
Functionis_nibble
(x: u8)
src/path.rs:10
Methodis_valid
(id: u32)
src/page.rs:65
Functionlen
(f: &File)
src/page/manager/mmap.rs:368
Methodlength
(&self)
src/node.rs:604
Functionlower_64_nibbles
()
src/path.rs:470
Functionmain
()
cli/src/main.rs:186
Methodnew
(nonce: u64, balance: U256, storage_root: B256, code_hash: B256)
src/account.rs:18
Methodnew
Creates a new [Pointer] from a [Location] and an [RlpNode].
src/pointer.rs:24
Methodnew
(id: u32)
src/page.rs:72
Methodnew
()
src/path.rs:37
Methodnew
(prefix: Nibbles, kind: NodeKind)
src/node.rs:124
Methodnew
(storage_engine: StorageEngine)
src/database.rs:175
Methodnew
(meta: impl AsRef<MetadataSlot>)
src/context.rs:68
Methodnew
(context: TransactionContext, database: DB)
src/transaction.rs:53
Methodnew
Creates a new empty mutable overlay state.
src/overlay.rs:33
Methodnew
Constructs a new `PageMut` from a mutable reference to an *unused* page. This method is safe because the mutable reference ensures that there cannot
src/page/page.rs:236
Methodnew
(value: &'n [u8; 1 + 64 + 16 * 8])
src/page/subtrie_page.rs:72
Methodnew
Creates a new cell pointer and writes it to the given data.
src/page/slotted_page/cell_pointer.rs:21
Methodnew
()
src/page/manager/options.rs:15
Methodnew
()
src/storage/overlay_root.rs:33
Methodnew
Creates a new StorageDebugger with references to the storage engine components.
src/storage/debug.rs:86
Methodnew
Creates a new StorageEngine with the given page manager, metadata manager, and thread pool.
src/storage/engine/engine.rs:30
Methodnew
(page_id: PageId, orphaned_at: SnapshotId)
src/meta/mod.rs:353
Methodnew
()
src/transaction/manager.rs:17
Methodnew_account_leaf
( prefix: Nibbles, balance_rlp: ArrayVec<u8, 33>, nonce_rlp: ArrayVec<u8, 9>,
src/node.rs:99
Methodnew_branch
Creates a new branch [Node] from a [Nibbles] prefix. # Panics This function will panic if the provided prefix is greater than 64 nibbles long.
src/node.rs:118
Methodnew_hash
(root: B256)
src/storage/overlay_root.rs:87
Methodnew_leaf
Creates a new account leaf or storage leaf [Node] from a [Nibbles] prefix and a [TrieValue]. # Panics This function will panic if the provided prefi
src/node.rs:82
Methodnew_storage_leaf
(prefix: Nibbles, value_rlp: ArrayVec<u8, 33>)
src/node.rs:109
Methodnew_unchecked
(id: u32)
src/page.rs:87
Methodnew_unhashed
Creates a new [Pointer] from a [Location] with an unhashed [RlpNode].
src/pointer.rs:29
Methodnot
(self)
src/meta/mod.rs:104
Methodopen
Opens the file at `path` with the options specified by `self`.
src/page/manager/options.rs:74
Methodopen
(path: impl AsRef<Path>)
src/meta/mod.rs:388
Methodopen_temp_file
(&self)
src/page/manager/options.rs:87
Methodopen_with_options
( db_path: impl AsRef<Path>, meta_path: impl AsRef<Path>, opts: &DatabaseOptions,
src/database.rs:130
Methodopen_with_options
( opts: &PageManagerOptions, path: impl AsRef<Path>, )
src/page/manager/mmap.rs:44
Methodoptions
()
src/database.rs:126
Methodoptions
()
src/page/manager/mmap.rs:27
Functionpack
()
src/path.rs:404
Methodpage_count
Sets the number of pages already written to the file. The default is `0`.
src/page/manager/options.rs:51
Methodpartial_cmp
(&self, other: &u32)
src/page.rs:160
Methodpending
()
src/executor/futures.rs:33
Functionpending_to_completed
()
src/executor/futures.rs:162
Functionpending_to_poisoned
()
src/executor/futures.rs:175
Functionpersistence
()
src/page/manager/mmap.rs:408
Functionpersistence
()
src/meta/mod.rs:705
Functionpoisoning
()
src/executor/threadpool.rs:71
Methodpop
(&mut self)
src/path.rs:105
Functionpush_pop
()
src/meta/mod.rs:868
Functionrandom_push_pop
()
src/meta/mod.rs:846
Functionraw_page_state_mutations
()
src/page/state.rs:222
Functionread
(mut f: &File, n: usize)
src/page/manager/mmap.rs:418
Methodready
(value: T)
src/executor/futures.rs:40
Methodrollback
(mut self)
src/transaction.rs:190
Methodroot_node
(&'n self)
src/page/subtrie_page.rs:14
Methodroot_page_info
Prints information about the root page and database metadata. This includes: - Root Node Page ID - Total Page Count - List of Orphaned Pages
src/storage/debug.rs:785
Functionrun_ethereum_execution_spec_state_tests
()
tests/ethereum_execution_spec.rs:21
Methodserialize_into
(&self, buf: &mut [u8])
src/pointer.rs:59
Methodserialize_into
(&self, buf: &mut [u8])
src/node.rs:364
Methodset_snapshot_id
(&mut self, snapshot_id: SnapshotId)
src/page/page.rs:258
Methodsize
(&self)
src/pointer.rs:55
Methodsize
(&self)
src/storage/value.rs:49
Functionslice
()
src/path.rs:452
Methodsnapshot_id
(&self)
src/page/state.rs:179
← previousnext →401–500 of 627, ranked by callers