6 #ifndef KAGOME_RUNTIME_TYPES_HPP 7 #define KAGOME_RUNTIME_TYPES_HPP 53 const auto unsigned_result =
static_cast<uint64_t
>(span);
54 const uint32_t minor_part = unsigned_result & 0xFFFFFFFFLLU;
55 const uint32_t major_part = (unsigned_result >> 32u) & 0xFFFFFFFFLLU;
57 return {minor_part, major_part};
61 #endif // KAGOME_RUNTIME_TYPES_HPP
static constexpr std::pair< WasmPointer, WasmSize > splitSpan(WasmSpan span)
uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
uint32_t WasmOffset
Offset type is uint32_t because we are working in 32 bit address space.
WasmLogLevel
type of wasm log levels
uint64_t WasmSpan
combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size
uint32_t WasmEnum
Enum value is uint32_t.
uint32_t WasmPointer
type of wasm memory is 32 bit integer