Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/base/triedb
/ functions
Functions
627 in github.com/base/triedb
⨍
Functions
627
◇
Types & classes
91
Method
for_address
Creates a new [AddressPath] from an [Address].
src/path.rs:312
Method
for_address_and_slot
Creates a new [StoragePath] from an [Address] and a [StorageKey].
src/path.rs:353
Method
for_address_path_and_slot
(address_path: AddressPath, slot: StorageKey)
src/path.rs:360
Method
for_address_path_and_slot_hash
(address_path: AddressPath, slot_hash: Nibbles)
src/path.rs:366
Method
for_cell
Creates a new [Location] for a cell on the same page.
src/location.rs:20
Method
for_page
Creates a new [Location] for a page.
src/location.rs:15
Method
from
(pointer: Pointer)
src/pointer.rs:97
Method
from
(value: u32)
src/location.rs:45
Method
from
(id: PageId)
src/page.rs:140
Method
from
(nibbles: Nibbles)
src/path.rs:201
Method
from
(val: Account)
src/node.rs:735
Method
from
(slotted_page: SlottedPage<'p>)
src/page/slotted_page.rs:142
Method
from
(value: u64)
src/page/state.rs:189
Method
from
(storage: S)
src/page/subtrie_page.rs:41
Method
from
(error: CellPointerError)
src/page/slotted_page/cell_pointer.rs:12
Method
from
(_: CorruptedMetadataError)
src/meta/error.rs:32
Function
from_alloy_trie_nibbles
()
src/path.rs:442
Method
from_bytes
(bytes: &[u8])
src/pointer.rs:69
Method
from_bytes
(bytes: &[u8])
src/node.rs:440
Method
from_bytes
(bytes: &[u8])
src/storage/value.rs:58
Method
from_file
(file: File)
src/page/manager/mmap.rs:35
Method
from_file
(file: File)
src/meta/mod.rs:393
Method
from_file_with_options
( opts: &PageManagerOptions, file: File, )
src/page/manager/mmap.rs:52
Method
from_iter
(it: I)
src/path.rs:233
Method
from_nibbles
(nibbles: &[u8])
src/path.rs:41
Method
from_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
Method
from_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
Method
from_str
(s: &str)
src/page.rs:189
Method
get
Returns the value associated with the key. # Panics Panics if the key is not 64 bytes long.
src/context.rs:38
Method
get
(&self, index: usize)
src/overlay.rs:131
Method
get_cache_storage_read
(&self)
src/metrics.rs:110
Function
get_state_root_and_account_storage_roots_with_alloy_trie
useful for debugging root hashes using alloy trie
tests/ethereum_execution_spec.rs:179
Method
get_value_ref
Get a reference to a value
src/page/slotted_page.rs:42
Function
higher_64_nibbles
()
src/path.rs:493
Method
higher_64_nibbles
(&self)
src/path.rs:188
Function
is_nibble
(x: u8)
src/path.rs:10
Method
is_valid
(id: u32)
src/page.rs:65
Function
len
(f: &File)
src/page/manager/mmap.rs:368
Method
length
(&self)
src/node.rs:604
Function
lower_64_nibbles
()
src/path.rs:470
Function
main
()
cli/src/main.rs:186
Method
new
(nonce: u64, balance: U256, storage_root: B256, code_hash: B256)
src/account.rs:18
Method
new
Creates a new [Pointer] from a [Location] and an [RlpNode].
src/pointer.rs:24
Method
new
(id: u32)
src/page.rs:72
Method
new
()
src/path.rs:37
Method
new
(prefix: Nibbles, kind: NodeKind)
src/node.rs:124
Method
new
(storage_engine: StorageEngine)
src/database.rs:175
Method
new
(meta: impl AsRef<MetadataSlot>)
src/context.rs:68
Method
new
(context: TransactionContext, database: DB)
src/transaction.rs:53
Method
new
Creates a new empty mutable overlay state.
src/overlay.rs:33
Method
new
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
Method
new
(value: &'n [u8; 1 + 64 + 16 * 8])
src/page/subtrie_page.rs:72
Method
new
Creates a new cell pointer and writes it to the given data.
src/page/slotted_page/cell_pointer.rs:21
Method
new
()
src/page/manager/options.rs:15
Method
new
()
src/storage/overlay_root.rs:33
Method
new
Creates a new StorageDebugger with references to the storage engine components.
src/storage/debug.rs:86
Method
new
Creates a new StorageEngine with the given page manager, metadata manager, and thread pool.
src/storage/engine/engine.rs:30
Method
new
(page_id: PageId, orphaned_at: SnapshotId)
src/meta/mod.rs:353
Method
new
()
src/transaction/manager.rs:17
Method
new_account_leaf
( prefix: Nibbles, balance_rlp: ArrayVec<u8, 33>, nonce_rlp: ArrayVec<u8, 9>,
src/node.rs:99
Method
new_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
Method
new_hash
(root: B256)
src/storage/overlay_root.rs:87
Method
new_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
Method
new_storage_leaf
(prefix: Nibbles, value_rlp: ArrayVec<u8, 33>)
src/node.rs:109
Method
new_unchecked
(id: u32)
src/page.rs:87
Method
new_unhashed
Creates a new [Pointer] from a [Location] with an unhashed [RlpNode].
src/pointer.rs:29
Method
not
(self)
src/meta/mod.rs:104
Method
open
Opens the file at `path` with the options specified by `self`.
src/page/manager/options.rs:74
Method
open
(path: impl AsRef<Path>)
src/meta/mod.rs:388
Method
open_temp_file
(&self)
src/page/manager/options.rs:87
Method
open_with_options
( db_path: impl AsRef<Path>, meta_path: impl AsRef<Path>, opts: &DatabaseOptions,
src/database.rs:130
Method
open_with_options
( opts: &PageManagerOptions, path: impl AsRef<Path>, )
src/page/manager/mmap.rs:44
Method
options
()
src/database.rs:126
Method
options
()
src/page/manager/mmap.rs:27
Function
pack
()
src/path.rs:404
Method
page_count
Sets the number of pages already written to the file. The default is `0`.
src/page/manager/options.rs:51
Method
partial_cmp
(&self, other: &u32)
src/page.rs:160
Method
pending
()
src/executor/futures.rs:33
Function
pending_to_completed
()
src/executor/futures.rs:162
Function
pending_to_poisoned
()
src/executor/futures.rs:175
Function
persistence
()
src/page/manager/mmap.rs:408
Function
persistence
()
src/meta/mod.rs:705
Function
poisoning
()
src/executor/threadpool.rs:71
Method
pop
(&mut self)
src/path.rs:105
Function
push_pop
()
src/meta/mod.rs:868
Function
random_push_pop
()
src/meta/mod.rs:846
Function
raw_page_state_mutations
()
src/page/state.rs:222
Function
read
(mut f: &File, n: usize)
src/page/manager/mmap.rs:418
Method
ready
(value: T)
src/executor/futures.rs:40
Method
rollback
(mut self)
src/transaction.rs:190
Method
root_node
(&'n self)
src/page/subtrie_page.rs:14
Method
root_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
Function
run_ethereum_execution_spec_state_tests
()
tests/ethereum_execution_spec.rs:21
Method
serialize_into
(&self, buf: &mut [u8])
src/pointer.rs:59
Method
serialize_into
(&self, buf: &mut [u8])
src/node.rs:364
Method
set_snapshot_id
(&mut self, snapshot_id: SnapshotId)
src/page/page.rs:258
Method
size
(&self)
src/pointer.rs:55
Method
size
(&self)
src/storage/value.rs:49
Function
slice
()
src/path.rs:452
Method
snapshot_id
(&self)
src/page/state.rs:179
← previous
next →
401–500 of 627, ranked by callers