1 #ifndef IPFS_CHROMIUM_CBOR_ADAPTER_H_
2 #define IPFS_CHROMIUM_CBOR_ADAPTER_H_
4 #include <components/cbor/values.h>
6 #include <ipfs_client/ctx/cbor_parser.h>
7 #include <ipfs_client/dag_cbor_value.h>
15 std::unique_ptr<DagCborValue> at(std::string_view)
const override;
16 std::optional<std::uint64_t> as_unsigned()
const override;
17 std::optional<std::int64_t> as_signed()
const override;
18 std::optional<double> as_float()
const override;
19 std::optional<std::string> as_string()
const override;
20 std::optional<std::vector<std::uint8_t>> as_bytes()
const override;
21 std::optional<Cid> as_link()
const override;
22 std::optional<bool> as_bool()
const override;
23 bool is_map()
const override;
24 bool is_array()
const override;
25 void iterate_map(MapElementCallback)
const override;
26 void iterate_array(ArrayElementCallback)
const override;
35 std::unique_ptr<DagCborValue>
Parse(ByteView)
override;
Definition: chromium_cbor_adapter.h:12
std::unique_ptr< DagCborValue > Parse(ByteView) override
Definition: dag_cbor_value.h:15
Definition: cbor_parser.h:15