inccounter

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0, BSD-2-Clause, Apache-2.0, + 1 more Imports: 1 Imported by: 0

Documentation

Index

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

func OnLoad

func OnLoad()

Types

type CallIncrementCall

type CallIncrementCall struct {
	Func *wasmlib.ScFunc
}

type CallIncrementContext

type CallIncrementContext struct {
	State MutableIncCounterState
}

type CallIncrementRecurse5xCall

type CallIncrementRecurse5xCall struct {
	Func *wasmlib.ScFunc
}

type CallIncrementRecurse5xContext

type CallIncrementRecurse5xContext struct {
	State MutableIncCounterState
}

type EndlessLoopCall

type EndlessLoopCall struct {
	Func *wasmlib.ScFunc
}

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) Init

func (sc Funcs) Init(ctx wasmlib.ScFuncCallContext) *InitCall

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

type ImmutableIncCounterState

type ImmutableIncCounterState struct {
	// contains filtered or unexported fields
}

func (ImmutableIncCounterState) Counter

func (ImmutableIncCounterState) NumRepeats

type ImmutableIncrementWithDelayParams

type ImmutableIncrementWithDelayParams struct {
	// contains filtered or unexported fields
}

func (ImmutableIncrementWithDelayParams) Delay

type ImmutableInitParams

type ImmutableInitParams struct {
	// contains filtered or unexported fields
}

func (ImmutableInitParams) Counter

type ImmutableRepeatManyParams

type ImmutableRepeatManyParams struct {
	// contains filtered or unexported fields
}

func (ImmutableRepeatManyParams) NumRepeats

type ImmutableWhenMustIncrementParams

type ImmutableWhenMustIncrementParams struct {
	// contains filtered or unexported fields
}

func (ImmutableWhenMustIncrementParams) Dummy

type IncrementCall

type IncrementCall struct {
	Func *wasmlib.ScFunc
}

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 LocalStateInternalCallCall

type LocalStateInternalCallCall struct {
	Func *wasmlib.ScFunc
}

type LocalStateInternalCallContext

type LocalStateInternalCallContext struct {
	State MutableIncCounterState
}

type LocalStatePostCall

type LocalStatePostCall struct {
	Func *wasmlib.ScFunc
}

type LocalStatePostContext

type LocalStatePostContext struct {
	State MutableIncCounterState
}

type LocalStateSandboxCallCall

type LocalStateSandboxCallCall struct {
	Func *wasmlib.ScFunc
}

type LocalStateSandboxCallContext

type LocalStateSandboxCallContext struct {
	State MutableIncCounterState
}

type MutableGetCounterResults

type MutableGetCounterResults struct {
	// contains filtered or unexported fields
}

func (MutableGetCounterResults) Counter

type MutableIncCounterState

type MutableIncCounterState struct {
	// contains filtered or unexported fields
}

func (MutableIncCounterState) Counter

func (MutableIncCounterState) NumRepeats

type MutableIncrementWithDelayParams

type MutableIncrementWithDelayParams struct {
	// contains filtered or unexported fields
}

func (MutableIncrementWithDelayParams) Delay

type MutableInitParams

type MutableInitParams struct {
	// contains filtered or unexported fields
}

func (MutableInitParams) Counter

type MutableRepeatManyParams

type MutableRepeatManyParams struct {
	// contains filtered or unexported fields
}

func (MutableRepeatManyParams) NumRepeats

type MutableWhenMustIncrementParams

type MutableWhenMustIncrementParams struct {
	// contains filtered or unexported fields
}

func (MutableWhenMustIncrementParams) Dummy

type PostIncrementCall

type PostIncrementCall struct {
	Func *wasmlib.ScFunc
}

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 TestLeb128Call struct {
	Func *wasmlib.ScFunc
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL