Documentation ¶
Index ¶
- Constants
- Variables
- func OnLoad()
- type CallIncrementCall
- type CallIncrementContext
- type CallIncrementRecurse5xCall
- type CallIncrementRecurse5xContext
- type EndlessLoopCall
- type EndlessLoopContext
- type Funcs
- func (sc Funcs) CallIncrement(ctx wasmlib.ScFuncCallContext) *CallIncrementCall
- func (sc Funcs) CallIncrementRecurse5x(ctx wasmlib.ScFuncCallContext) *CallIncrementRecurse5xCall
- func (sc Funcs) EndlessLoop(ctx wasmlib.ScFuncCallContext) *EndlessLoopCall
- func (sc Funcs) GetCounter(ctx wasmlib.ScViewCallContext) *GetCounterCall
- func (sc Funcs) Increment(ctx wasmlib.ScFuncCallContext) *IncrementCall
- func (sc Funcs) IncrementWithDelay(ctx wasmlib.ScFuncCallContext) *IncrementWithDelayCall
- func (sc Funcs) Init(ctx wasmlib.ScFuncCallContext) *InitCall
- func (sc Funcs) LocalStateInternalCall(ctx wasmlib.ScFuncCallContext) *LocalStateInternalCallCall
- func (sc Funcs) LocalStatePost(ctx wasmlib.ScFuncCallContext) *LocalStatePostCall
- func (sc Funcs) LocalStateSandboxCall(ctx wasmlib.ScFuncCallContext) *LocalStateSandboxCallCall
- func (sc Funcs) PostIncrement(ctx wasmlib.ScFuncCallContext) *PostIncrementCall
- func (sc Funcs) RepeatMany(ctx wasmlib.ScFuncCallContext) *RepeatManyCall
- func (sc Funcs) TestLeb128(ctx wasmlib.ScFuncCallContext) *TestLeb128Call
- func (sc Funcs) WhenMustIncrement(ctx wasmlib.ScFuncCallContext) *WhenMustIncrementCall
- type GetCounterCall
- type GetCounterContext
- type ImmutableGetCounterResults
- type ImmutableIncCounterState
- type ImmutableIncrementWithDelayParams
- type ImmutableInitParams
- type ImmutableRepeatManyParams
- type ImmutableWhenMustIncrementParams
- type IncrementCall
- type IncrementContext
- type IncrementWithDelayCall
- type IncrementWithDelayContext
- type InitCall
- type InitContext
- type LocalStateInternalCallCall
- type LocalStateInternalCallContext
- type LocalStatePostCall
- type LocalStatePostContext
- type LocalStateSandboxCallCall
- type LocalStateSandboxCallContext
- type MutableGetCounterResults
- type MutableIncCounterState
- type MutableIncrementWithDelayParams
- type MutableInitParams
- type MutableRepeatManyParams
- type MutableWhenMustIncrementParams
- type PostIncrementCall
- type PostIncrementContext
- type RepeatManyCall
- type RepeatManyContext
- type TestLeb128Call
- type TestLeb128Context
- type WhenMustIncrementCall
- type WhenMustIncrementContext
Constants ¶
View Source
const ( ScName = "inccounter" HScName = wasmlib.ScHname(0xaf2438e9) )
View Source
const ( ParamCounter = wasmlib.Key("counter") ParamDelay = wasmlib.Key("delay") ParamDummy = wasmlib.Key("dummy") ParamNumRepeats = wasmlib.Key("numRepeats") )
View Source
const ( StateCounter = wasmlib.Key("counter") StateNumRepeats = wasmlib.Key("numRepeats") )
View Source
const ( FuncCallIncrement = "callIncrement" FuncCallIncrementRecurse5x = "callIncrementRecurse5x" FuncEndlessLoop = "endlessLoop" FuncIncrement = "increment" FuncIncrementWithDelay = "incrementWithDelay" FuncInit = "init" FuncLocalStateInternalCall = "localStateInternalCall" FuncLocalStatePost = "localStatePost" FuncLocalStateSandboxCall = "localStateSandboxCall" FuncPostIncrement = "postIncrement" FuncRepeatMany = "repeatMany" FuncTestLeb128 = "testLeb128" FuncWhenMustIncrement = "whenMustIncrement" ViewGetCounter = "getCounter" )
View Source
const ( HFuncCallIncrement = wasmlib.ScHname(0xeb5dcacd) HFuncCallIncrementRecurse5x = wasmlib.ScHname(0x8749fbff) HFuncEndlessLoop = wasmlib.ScHname(0x365f0929) HFuncIncrement = wasmlib.ScHname(0xd351bd12) HFuncIncrementWithDelay = wasmlib.ScHname(0xa235bba7) HFuncInit = wasmlib.ScHname(0x1f44d644) HFuncLocalStateInternalCall = wasmlib.ScHname(0xecfc5d33) HFuncLocalStatePost = wasmlib.ScHname(0x3fd54d13) HFuncLocalStateSandboxCall = wasmlib.ScHname(0x7bd22c53) HFuncPostIncrement = wasmlib.ScHname(0x81c772f5) HFuncRepeatMany = wasmlib.ScHname(0x4ff450d3) HFuncTestLeb128 = wasmlib.ScHname(0xd8364cb9) HFuncWhenMustIncrement = wasmlib.ScHname(0xb4c3e7a6) HViewGetCounter = wasmlib.ScHname(0xb423e607) )
View Source
const ( IdxParamCounter = 0 IdxParamDelay = 1 IdxParamDummy = 2 IdxParamNumRepeats = 3 IdxResultCounter = 4 IdxStateCounter = 5 IdxStateNumRepeats = 6 )
View Source
const ResultCounter = wasmlib.Key("counter")
Variables ¶
View Source
var LocalStateMustIncrement = false
Functions ¶
Types ¶
type CallIncrementCall ¶
type CallIncrementContext ¶
type CallIncrementContext struct {
State MutableIncCounterState
}
type CallIncrementRecurse5xContext ¶
type CallIncrementRecurse5xContext struct {
State MutableIncCounterState
}
type EndlessLoopCall ¶
type EndlessLoopContext ¶
type EndlessLoopContext struct {
State MutableIncCounterState
}
type Funcs ¶
type Funcs struct{}
var ScFuncs Funcs
func (Funcs) CallIncrement ¶
func (sc Funcs) CallIncrement(ctx wasmlib.ScFuncCallContext) *CallIncrementCall
func (Funcs) CallIncrementRecurse5x ¶
func (sc Funcs) CallIncrementRecurse5x(ctx wasmlib.ScFuncCallContext) *CallIncrementRecurse5xCall
func (Funcs) EndlessLoop ¶
func (sc Funcs) EndlessLoop(ctx wasmlib.ScFuncCallContext) *EndlessLoopCall
func (Funcs) GetCounter ¶
func (sc Funcs) GetCounter(ctx wasmlib.ScViewCallContext) *GetCounterCall
func (Funcs) Increment ¶
func (sc Funcs) Increment(ctx wasmlib.ScFuncCallContext) *IncrementCall
func (Funcs) IncrementWithDelay ¶
func (sc Funcs) IncrementWithDelay(ctx wasmlib.ScFuncCallContext) *IncrementWithDelayCall
func (Funcs) LocalStateInternalCall ¶
func (sc Funcs) LocalStateInternalCall(ctx wasmlib.ScFuncCallContext) *LocalStateInternalCallCall
func (Funcs) LocalStatePost ¶
func (sc Funcs) LocalStatePost(ctx wasmlib.ScFuncCallContext) *LocalStatePostCall
func (Funcs) LocalStateSandboxCall ¶
func (sc Funcs) LocalStateSandboxCall(ctx wasmlib.ScFuncCallContext) *LocalStateSandboxCallCall
func (Funcs) PostIncrement ¶
func (sc Funcs) PostIncrement(ctx wasmlib.ScFuncCallContext) *PostIncrementCall
func (Funcs) RepeatMany ¶
func (sc Funcs) RepeatMany(ctx wasmlib.ScFuncCallContext) *RepeatManyCall
func (Funcs) TestLeb128 ¶
func (sc Funcs) TestLeb128(ctx wasmlib.ScFuncCallContext) *TestLeb128Call
func (Funcs) WhenMustIncrement ¶
func (sc Funcs) WhenMustIncrement(ctx wasmlib.ScFuncCallContext) *WhenMustIncrementCall
type GetCounterCall ¶
type GetCounterCall struct { Func *wasmlib.ScView Results ImmutableGetCounterResults }
type GetCounterContext ¶
type GetCounterContext struct { Results MutableGetCounterResults State ImmutableIncCounterState }
type ImmutableGetCounterResults ¶
type ImmutableGetCounterResults struct {
// contains filtered or unexported fields
}
func (ImmutableGetCounterResults) Counter ¶
func (s ImmutableGetCounterResults) Counter() wasmlib.ScImmutableInt64
type ImmutableIncCounterState ¶
type ImmutableIncCounterState struct {
// contains filtered or unexported fields
}
func (ImmutableIncCounterState) Counter ¶
func (s ImmutableIncCounterState) Counter() wasmlib.ScImmutableInt64
func (ImmutableIncCounterState) NumRepeats ¶
func (s ImmutableIncCounterState) NumRepeats() wasmlib.ScImmutableInt64
type ImmutableIncrementWithDelayParams ¶
type ImmutableIncrementWithDelayParams struct {
// contains filtered or unexported fields
}
func (ImmutableIncrementWithDelayParams) Delay ¶
func (s ImmutableIncrementWithDelayParams) Delay() wasmlib.ScImmutableInt32
type ImmutableInitParams ¶
type ImmutableInitParams struct {
// contains filtered or unexported fields
}
func (ImmutableInitParams) Counter ¶
func (s ImmutableInitParams) Counter() wasmlib.ScImmutableInt64
type ImmutableRepeatManyParams ¶
type ImmutableRepeatManyParams struct {
// contains filtered or unexported fields
}
func (ImmutableRepeatManyParams) NumRepeats ¶
func (s ImmutableRepeatManyParams) NumRepeats() wasmlib.ScImmutableInt64
type ImmutableWhenMustIncrementParams ¶
type ImmutableWhenMustIncrementParams struct {
// contains filtered or unexported fields
}
func (ImmutableWhenMustIncrementParams) Dummy ¶
func (s ImmutableWhenMustIncrementParams) Dummy() wasmlib.ScImmutableInt64
type IncrementCall ¶
type IncrementContext ¶
type IncrementContext struct {
State MutableIncCounterState
}
type IncrementWithDelayCall ¶
type IncrementWithDelayCall struct { Func *wasmlib.ScFunc Params MutableIncrementWithDelayParams }
type IncrementWithDelayContext ¶
type IncrementWithDelayContext struct { Params ImmutableIncrementWithDelayParams State MutableIncCounterState }
type InitCall ¶
type InitCall struct { Func *wasmlib.ScInitFunc Params MutableInitParams }
type InitContext ¶
type InitContext struct { Params ImmutableInitParams State MutableIncCounterState }
type LocalStateInternalCallContext ¶
type LocalStateInternalCallContext struct {
State MutableIncCounterState
}
type LocalStatePostCall ¶
type LocalStatePostContext ¶
type LocalStatePostContext struct {
State MutableIncCounterState
}
type LocalStateSandboxCallContext ¶
type LocalStateSandboxCallContext struct {
State MutableIncCounterState
}
type MutableGetCounterResults ¶
type MutableGetCounterResults struct {
// contains filtered or unexported fields
}
func (MutableGetCounterResults) Counter ¶
func (s MutableGetCounterResults) Counter() wasmlib.ScMutableInt64
type MutableIncCounterState ¶
type MutableIncCounterState struct {
// contains filtered or unexported fields
}
func (MutableIncCounterState) Counter ¶
func (s MutableIncCounterState) Counter() wasmlib.ScMutableInt64
func (MutableIncCounterState) NumRepeats ¶
func (s MutableIncCounterState) NumRepeats() wasmlib.ScMutableInt64
type MutableIncrementWithDelayParams ¶
type MutableIncrementWithDelayParams struct {
// contains filtered or unexported fields
}
func (MutableIncrementWithDelayParams) Delay ¶
func (s MutableIncrementWithDelayParams) Delay() wasmlib.ScMutableInt32
type MutableInitParams ¶
type MutableInitParams struct {
// contains filtered or unexported fields
}
func (MutableInitParams) Counter ¶
func (s MutableInitParams) Counter() wasmlib.ScMutableInt64
type MutableRepeatManyParams ¶
type MutableRepeatManyParams struct {
// contains filtered or unexported fields
}
func (MutableRepeatManyParams) NumRepeats ¶
func (s MutableRepeatManyParams) NumRepeats() wasmlib.ScMutableInt64
type MutableWhenMustIncrementParams ¶
type MutableWhenMustIncrementParams struct {
// contains filtered or unexported fields
}
func (MutableWhenMustIncrementParams) Dummy ¶
func (s MutableWhenMustIncrementParams) Dummy() wasmlib.ScMutableInt64
type PostIncrementCall ¶
type PostIncrementContext ¶
type PostIncrementContext struct {
State MutableIncCounterState
}
type RepeatManyCall ¶
type RepeatManyCall struct { Func *wasmlib.ScFunc Params MutableRepeatManyParams }
type RepeatManyContext ¶
type RepeatManyContext struct { Params ImmutableRepeatManyParams State MutableIncCounterState }
type TestLeb128Call ¶
type TestLeb128Context ¶
type TestLeb128Context struct {
State MutableIncCounterState
}
type WhenMustIncrementCall ¶
type WhenMustIncrementCall struct { Func *wasmlib.ScFunc Params MutableWhenMustIncrementParams }
type WhenMustIncrementContext ¶
type WhenMustIncrementContext struct { Params ImmutableWhenMustIncrementParams State MutableIncCounterState }
Click to show internal directories.
Click to hide internal directories.