Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
uncompress_code_if_needed.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CORE_RUNTIME_UNCOMPRESS_IF_NEEDED_HPP
7
#define KAGOME_CORE_RUNTIME_UNCOMPRESS_IF_NEEDED_HPP
8
9
#include "
common/buffer.hpp
"
10
11
namespace
kagome::runtime
{
12
enum class
UncompressError
: uint8_t {
ZSTD_ERROR
};
13
14
outcome::result<void>
uncompressCodeIfNeeded
(
common::BufferView
buf,
15
common::Buffer
&res);
16
}
// namespace kagome::runtime
17
18
OUTCOME_HPP_DECLARE_ERROR
(
kagome::runtime
,
UncompressError
);
19
20
#endif // KAGOME_CORE_RUNTIME_UNCOMPRESS_IF_NEEDED_HPP
kagome::common::SLBuffer
Class represents arbitrary (including empty) byte buffer.
Definition:
buffer.hpp:29
kagome::common::BufferView
Definition:
buffer_view.hpp:21
kagome::runtime
Definition:
author_api_impl.hpp:43
kagome::runtime::UncompressError::ZSTD_ERROR
kagome::runtime::UncompressError
UncompressError
Definition:
uncompress_code_if_needed.hpp:12
OUTCOME_HPP_DECLARE_ERROR
OUTCOME_HPP_DECLARE_ERROR(kagome::runtime, UncompressError)
buffer.hpp
kagome::runtime::uncompressCodeIfNeeded
outcome::result< void > uncompressCodeIfNeeded(common::BufferView buf, common::Buffer &res)
Definition:
uncompress_code_if_needed.cpp:30
core
runtime
common
uncompress_code_if_needed.hpp
Generated by
1.8.11