C# Class Ipfs.Api.MerkleNode

The IPFS MerkleDag is the datastructure at the heart of IPFS. It is an acyclic directed graph whose edges are hashes.
Initially an MerkleNode is just constructed with its MultiHash. Its other properties are lazily loaded.
Afficher le fichier Open project: richardschneider/net-ipfs-api Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( MerkleNode that ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetRawData ( ) : Stream

Gets the raw encoded data of the node.

Equivalent to ipfs block get Hash.

MerkleNode ( string hash, string name = null ) : System

Creates a new instance of the MerkleNode with the specified Hash">multihash and optional

ToString ( ) : string
operator ( ) : bool

Private Methods

Méthode Description
GetBlockStats ( ) : void

Get block statistics about the node, ipfs block stat key

The object stats include the block stats.

GetObjectStats ( ) : void

Get object statistics about the node, ipfs object stat hash

The object stats include the block stats.

Method Details

Equals() public méthode

public Equals ( MerkleNode that ) : bool
that MerkleNode
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetRawData() public méthode

Gets the raw encoded data of the node.
Equivalent to ipfs block get Hash.
public GetRawData ( ) : Stream
Résultat Stream

MerkleNode() public méthode

Creates a new instance of the MerkleNode with the specified Hash">multihash and optional
public MerkleNode ( string hash, string name = null ) : System
hash string /// The Base58 hash of the node or "/ipfs/hash". ///
name string
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool