Kagome
Polkadot Runtime Engine in C++17
blob.cpp
Go to the documentation of this file.
1 
6 #include "common/blob.hpp"
7 
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
OUTCOME_CPP_DEFINE_CATEGORY(kagome::common, BlobError, e)
Definition: blob.cpp:8