Interface IMerkleNode<Link>
A Directed Acyclic Graph (DAG) in IPFS.
Namespace: Ipfs
Assembly: Ipfs.Core.dll
Syntax
public interface IMerkleNode<out Link> : IDataBlock where Link : IMerkleLink
Type Parameters
Name | Description |
---|---|
Link | The type of IMerkleLink used by this node. |
Remarks
A MerkleNode has a sequence of navigable Links and some data (DataBytes or DataStream).
Properties
| Improve this Doc View SourceLinks
Links to other nodes.
Declaration
IEnumerable<Link> Links { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Link> | A sequence of |
Remarks
It is never null.
The links are sorted ascending by Name. A null name is compared as "".
Methods
| Improve this Doc View SourceToLink(String)
Returns a link to the node.
Declaration
Link ToLink(string name = "")
Parameters
Type | Name | Description |
---|---|---|
String | name | A Name for the link; defaults to "". |
Returns
Type | Description |
---|---|
Link | A new IMerkleLink to the node. |