ipfs-chromium
Public Member Functions | List of all members
ipfs::ctx::CborParser Class Referenceabstract

#include <library/include/ipfs_client/ctx/cbor_parser.h>

Inheritance diagram for ipfs::ctx::CborParser:
Inheritance graph
[legend]

Public Member Functions

virtual std::unique_ptr< DagCborValueParse (ByteView cbor)=0
 

Detailed Description

A base class for your way of parsing CBOR

Member Function Documentation

◆ Parse()

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

Implemented in ipfs::ctx::NullCborParser, and ipfs::ChromiumCborAdapter.


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