ipfs-chromium
Public Member Functions | List of all members
ipfs::ChromiumCborAdapter Class Referencefinal

#include <component/chromium_cbor_adapter.h>

Inheritance diagram for ipfs::ChromiumCborAdapter:
Inheritance graph
[legend]
Collaboration diagram for ipfs::ChromiumCborAdapter:
Collaboration graph
[legend]

Public Member Functions

 ChromiumCborAdapter (cbor::Value &&)
 
 ChromiumCborAdapter (cbor::Value const &)
 
 ChromiumCborAdapter (ChromiumCborAdapter const &rhs)
 
std::unique_ptr< DagCborValueParse (ByteView) override
 
- Public Member Functions inherited from ipfs::DagCborValue
std::string html () const
 
void html (std::ostream &) const
 

Additional Inherited Members

- Public Types inherited from ipfs::DagCborValue
using MapElementCallback = std::function< void(std::string_view, DagCborValue const &)>
 
using ArrayElementCallback = std::function< void(DagCborValue const &)>
 

Detailed Description

Adapting Chromium's components/cbor to the API needed by ipfs_client

Member Function Documentation

◆ Parse()

std::unique_ptr<DagCborValue> ipfs::ChromiumCborAdapter::Parse ( ByteView  cbor)
overridevirtual
Parameters
cborThe CBOR to parse
Returns
The DOM value, or NULL if there was an error

Implements ipfs::ctx::CborParser.


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