ipfs-chromium
Static Public Member Functions | Public Attributes | List of all members
ipfs::mb::Codec Struct Reference

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

Collaboration diagram for ipfs::mb::Codec:
Collaboration graph
[legend]

Static Public Member Functions

static Codec const * Get (Code code)
 

Public Attributes

Decoder const decode
 
Encoder const encode
 
std::string_view const name
 

Detailed Description

Form of multibase codecs

https://github.com/multiformats/multibase

Member Function Documentation

◆ Get()

auto ipfs::mb::Codec::Get ( Code  code)
static
Parameters
Structwith the above fields filled
codeThe multibase to fetch

Member Data Documentation

◆ decode

Decoder const ipfs::mb::Codec::decode

Functor to turn a multibase string into binary

◆ encode

Encoder const ipfs::mb::Codec::encode

Functor to turn binary data into a multibase

◆ name

std::string_view const ipfs::mb::Codec::name

The name of the multibase in question. Should match the name found in the multibase table.


The documentation for this struct was generated from the following files: