Kagome
Polkadot Runtime Engine in C++17
uncompress_code_if_needed.cpp File Reference
#include "runtime/common/uncompress_code_if_needed.hpp"
#include <zstd.h>
Include dependency graph for uncompress_code_if_needed.cpp:

Go to the source code of this file.

Namespaces

 kagome::runtime
 

Functions

 OUTCOME_CPP_DEFINE_CATEGORY (kagome::runtime, UncompressError, e)
 
outcome::result< void > kagome::runtime::uncompressCodeIfNeeded (common::BufferView buf, common::Buffer &res)
 

Variables

constexpr uint8_t kagome::runtime::kZstdPrefixSize = 8
 
constexpr uint8_t kagome::runtime::kZstdPrefix [kZstdPrefixSize]
 
constexpr size_t kagome::runtime::kCodeBlobBombLimit = 50 * 1024 * 1024
 

Function Documentation

OUTCOME_CPP_DEFINE_CATEGORY ( kagome::runtime  ,
UncompressError  ,
 
)

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Definition at line 10 of file uncompress_code_if_needed.cpp.