IBlockStore class abstract

Interface for block storage operations.

Constructors

IBlockStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAllBlocks() Future<List<Block>>
Returns all stored blocks.
getBlock(CID cid) Future<BlockStoreResult<Block?>>
Retrieves a block by its CID.
hasBlock(CID cid) Future<bool>
Returns true if the block exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putBlock(Block block) Future<BlockStoreResult<void>>
Stores a block.
removeBlock(CID cid) Future<BlockStoreResult<bool>>
Removes a block by its CID.
start() Future<void>
Starts the block store.
stop() Future<void>
Stops the block store and releases resources.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited