ipfs-chromium
Public Member Functions | Static Public Attributes | List of all members
ipfs::Cid Class Reference

#include <library/include/ipfs_client/cid.h>

Collaboration diagram for ipfs::Cid:
Collaboration graph
[legend]

Public Member Functions

 Cid (MultiCodec, MultiHash)
 
 Cid (std::string_view)
 
 Cid (ByteView)
 
bool ReadStart (ByteView &)
 
bool valid () const
 
MultiCodec codec () const
 
MultiHash const & multi_hash () const
 
ByteView hash () const
 
HashType hash_type () const
 
std::string to_string () const
 
bool operator== (Cid const &) const =default
 

Static Public Attributes

constexpr static std::size_t MinSerializedLength
 

Detailed Description

A Content ID - a way to identify content based on the content itself generally via hash

Member Data Documentation

◆ MinSerializedLength

constexpr static std::size_t ipfs::Cid::MinSerializedLength
staticconstexpr
Initial value:
=
1 + 1 + 1 +
1

The documentation for this class was generated from the following file: