blob: 1f29cb048cb102ab092ba0bd2f2b281545791354 [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
#ifdef ENABLE_WASM
namespace Wasm
{
struct FunctionBodyReaderInfo
{
Field(uint32) size;
Field(intptr_t) startOffset;
};
class WasmReaderBase
{
public:
virtual void SeekToFunctionBody(class WasmFunctionInfo* funcInfo) = 0;
virtual bool IsCurrentFunctionCompleted() const = 0;
virtual WasmOp ReadExpr() = 0;
virtual void FunctionEnd() = 0;
WasmNode m_currentNode;
};
} // namespace Wasm
#endif // ENABLE_WASM