Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
blob.cpp
blob.hpp
buffer.hpp
buffer_back_insert_iterator.hpp
buffer_view.hpp
empty.hpp
fd_limit.cpp
fd_limit.hpp
hexutil.cpp
hexutil.hpp
literals.hpp
monadic_utils.hpp
mp_utils.cpp
mp_utils.hpp
outcome_throw.hpp
size_limited_containers.hpp
spin_lock.cpp
spin_lock.hpp
stub.hpp
tagged.hpp
type_traits.hpp
unused.hpp
uri.cpp
uri.hpp
variant_builder.hpp
visitor.hpp
wrapper.hpp
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
blob.cpp
Go to the documentation of this file.
1
6
#include "
common/blob.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::common
,
BlobError
, e) {
9
using
kagome::common::BlobError
;
10
11
switch
(e) {
12
case
BlobError::INCORRECT_LENGTH:
13
return
"Input string has incorrect length, not matching the blob size"
;
14
}
15
16
return
"Unknown error"
;
17
}
18
19
namespace
kagome::common
{
20
21
// explicit instantiations for the most frequently used blobs
22
template
class
Blob<8ul>
;
23
template
class
Blob<16ul>
;
24
template
class
Blob<32ul>
;
25
template
class
Blob<64ul>
;
26
27
}
// namespace kagome::common
kagome::common::Blob
Definition:
blob.hpp:115
kagome::common::BlobError
BlobError
Definition:
blob.hpp:102
blob.hpp
kagome::common
Definition:
blob.cpp:19
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::common, BlobError, e)
Definition:
blob.cpp:8
core
common
blob.cpp
Generated by
1.8.11