Skip to content

Commit b65e7c5

Browse files
authored
Make properties of FunctionBody public (#27)
* Make `size` of `FunctionBody` public This allows size profilers to read function code size outside of WasmTransformer. * Update CodeSectionReader.swift
1 parent 5679ba0 commit b65e7c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/WasmTransformer/Readers/CodeSectionReader.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
public struct FunctionBody {
2-
var input: InputByteStream
3-
let size: UInt32
4-
let endOffset: Int
2+
public internal(set) var input: InputByteStream
3+
public let size: UInt32
4+
public let endOffset: Int
55

66
func locals() -> LocalsReader {
77
LocalsReader(input: input)

0 commit comments

Comments
 (0)