Ipfs.Api.MerkleNode.GetObjectStats C# (CSharp) Method

GetObjectStats() private method

Get object statistics about the node, ipfs object stat hash
The object stats include the block stats.
private GetObjectStats ( ) : void
return void
        void GetObjectStats()
        {
            if (hasObjectStats)
                return;

            var stats = new IpfsClient().DoCommand<dynamic>("object/stat", Hash);
            if (stats.Hash != Hash)
                throw new IpfsException("Did not receive object/stat for the request merkle node.");
            blockSize = stats.BlockSize;
            cumulativeSize = stats.CumulativeSize;
            dataSize = stats.DataSize;
            linksSize = stats.LinksSize;
            linksCount = stats.NumLinks;

            hasObjectStats = true;
            hasBlockStats = true;
        }