6 #ifndef KAGOME_CORE_RUNTIME_PTR_SIZE_HPP 7 #define KAGOME_CORE_RUNTIME_PTR_SIZE_HPP 33 | (static_cast<WasmSpan>(
size) << 32ull);
46 #endif // KAGOME_CORE_RUNTIME_PTR_SIZE_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.
WasmPointer ptr
address of buffer
constexpr PtrSize(WasmPointer ptr, WasmSize size)
bool operator==(const PtrSize &rhs) const
constexpr WasmSpan combine() const
makes combined pointer-size result from address
uint64_t WasmSpan
combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size
uint32_t WasmPointer
type of wasm memory is 32 bit integer
WasmSize size
length of buffer