toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.wasm
/
WasmReaderText
/
WasmFuncBuilder
Wasm
Func
Builder
class
WasmFuncBuilder
(
val
module
:
WasmReaderText.WasmModuleBuilder
)
Members
Constructors
Wasm
Func
Builder
Link copied to clipboard
constructor
(
module
:
WasmReaderText.WasmModuleBuilder
)
Types
Block
Def
Link copied to clipboard
data
class
BlockDef
(
val
kind
:
String
,
val
id
:
String
?
)
Properties
blocks
Link copied to clipboard
val
blocks
:
ArrayList
<
WasmReaderText.WasmFuncBuilder.BlockDef
>
export
Name
Link copied to clipboard
var
exportName
:
String
?
func
Name
Link copied to clipboard
var
funcName
:
String
?
func
Type
Link copied to clipboard
val
funcType
:
WasmType.Function
instructions
Link copied to clipboard
val
instructions
:
ArrayList
<
WasmInstruction
>
just
Locals
Link copied to clipboard
val
justLocals
:
ArrayList
<
WastLocal
>
locals
Link copied to clipboard
val
locals
:
ArrayList
<
WastLocal
>
locals
By
Name
Link copied to clipboard
val
localsByName
:
LinkedHashMap
<
String
,
WastLocal
>
module
Link copied to clipboard
val
module
:
WasmReaderText.WasmModuleBuilder
params
Link copied to clipboard
val
params
:
ArrayList
<
WastLocal
>
results
Link copied to clipboard
var
results
:
ArrayList
<
WasmType
>
Functions
add
Result
Link copied to clipboard
fun
addResult
(
type
:
WasmType
)
:
WasmReaderText.WasmFuncBuilder
add
Var
Link copied to clipboard
fun
addVar
(
local
:
WastLocal
,
isParam
:
Boolean
)
:
WasmReaderText.WasmFuncBuilder
fun
addVar
(
vname
:
String
?
,
type
:
WasmType
,
isParam
:
Boolean
)
:
WasmReaderText.WasmFuncBuilder
build
Func
Link copied to clipboard
fun
buildFunc
(
builder
:
WasmReaderText.WasmModuleBuilder
)
:
WasmFunc
pop
Block
Link copied to clipboard
fun
popBlock
(
)
push
Block
Link copied to clipboard
fun
pushBlock
(
kind
:
String
,
id
:
String
?
=
null
)
:
WasmReaderText.WasmFuncBuilder.BlockDef
inline
fun
<
T
>
pushBlock
(
kind
:
String
,
id
:
String
?
=
null
,
block
:
(
)
->
T
)
:
T
relative
Index
Of
Block
By
Id
Link copied to clipboard
fun
relativeIndexOfBlockById
(
id
:
String
?
)
:
Int
?