forked from chakra-core/ChakraCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWasmDataSegment.h
More file actions
26 lines (21 loc) · 797 Bytes
/
WasmDataSegment.h
File metadata and controls
26 lines (21 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//-------------------------------------------------------------------------------------------------------
// 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
namespace Wasm
{
class WasmDataSegment
{
public:
WasmDataSegment(ArenaAllocator* alloc, WasmNode initExpr, uint32 _source_size, const byte* _data);
WasmNode GetOffsetExpr() const { return m_initExpr; }
uint32 GetSourceSize() const;
const byte* GetData() const;
private:
ArenaAllocator* m_alloc;
WasmNode m_initExpr;
uint32 m_sourceSize;
const byte* m_data;
};
} // namespace Wasm