ipfs-chromium
Loading...
Searching...
No Matches
cbor_parser.h
1#ifndef IPFS_CHROMIUM_CBOR_PARSER_H
2#define IPFS_CHROMIUM_CBOR_PARSER_H
3
4#include <vocab/byte_view.h>
5
6#include <memory>
7
8namespace ipfs {
9class DagCborValue;
10}
11
12namespace ipfs::ctx {
16 public:
20 virtual std::unique_ptr<DagCborValue> Parse(ByteView cbor) = 0;
21 virtual ~CborParser() noexcept {}
22};
23} // namespace ipfs::ctx
24
25#endif // IPFS_CHROMIUM_CBOR_PARSER_H
Definition cbor_parser.h:15
virtual std::unique_ptr< DagCborValue > Parse(ByteView cbor)=0