You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
565 B

#pragma once
#include "RuntimeData.h"
namespace dev
{
namespace eth
{
namespace jit
{
using MemoryImpl = bytes;
class Runtime
{
public:
void init(RuntimeData* _data, Env* _env);
bytes_ref getReturnData() const;
private:
RuntimeData* m_data = nullptr; ///< Pointer to data. Expected by compiled contract.
Env* m_env = nullptr; ///< Pointer to environment proxy. Expected by compiled contract.
byte* m_memoryData = nullptr;
i256 m_memorySize;
public:
byte* m_memData; // FIXME: Remember to free memory
uint64_t m_memSize;
uint64_t m_memCap;
};
}
}
}