Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bindings = evmbind.Static{Fingerprint: "70900643e963950b32e0807c6f806b8ac2f509b4928cd8a1f69fc5a508014e7f", Fields: map[string]*nativebind.GeneratedFields{ "FunctionSlot": &fieldsTypeFunctionSlot, "NativeBox": &fieldsTypeNativeBox, }, Types: map[string]reflect.Type{ "FunctionSlot": reflect.TypeFor[api.FunctionSlot](), "NativeBox": reflect.TypeFor[api.NativeBox](), "NativeUnary": reflect.TypeFor[api.NativeUnary](), }, Calls: map[string]evmbind.Wrapper{ "EchoNative": func(f *evmbind.Frame) { r0 := f.Host.(interface { EchoNative(*evm.VM, api.NativeUnary) api.NativeUnary }).EchoNative(f.VM, f.DecodeNativeCallback("NativeUnary", f.CallArgument(0)).(api.NativeUnary)) f.SetCallResult(0, writeTypeNativeUnary(f, r0)) }, "EchoSlot": func(f *evmbind.Frame) { r0 := f.Host.(interface { EchoSlot(*evm.VM, api.FunctionSlot) api.FunctionSlot }).EchoSlot(f.VM, readTypeFunctionSlot(f, f.CallArgument(0))) f.SetCallResult(0, writeTypeFunctionSlot(f, r0)) }, "Get": func(f *evmbind.Frame) { r0 := f.Host.(interface{ Get(*evm.VM) *evm.Callable }).Get(f.VM) f.SetCallResult(0, writeFunction3(f, r0)) }, "GetWrong": func(f *evmbind.Frame) { r0 := f.Host.(interface{ GetWrong(*evm.VM) *evm.Callable }).GetWrong(f.VM) f.SetCallResult(0, writeFunction4(f, r0)) }, "Keep": func(f *evmbind.Frame) { f.Host.(interface{ Keep(*evm.VM, *evm.Callable) }).Keep(f.VM, readFunction3(f, f.CallArgument(0))) }, "KeepAny": func(f *evmbind.Frame) { f.Host.(interface{ KeepAny(*evm.VM, *evm.Callable) }).KeepAny(f.VM, readFunction0(f, f.CallArgument(0))) }, "*NativeBox.Visit": func(f *evmbind.Frame) { readPtrNativeBox(f, f.CallArgument(0)).Visit(readCollection11(f, f.CallArgument(1)), f.DecodeBorrowedCallback("func([]byte)", f.CallArgument(2), "fixture.rows").(func([]byte))) }, "*NativeBox.Bytes": func(f *evmbind.Frame) { r0 := readPtrNativeBox(f, f.CallArgument(0)).Bytes(readCollection11(f, f.CallArgument(1))) f.SetCallResult(0, f.EncodeBorrowedIterator("func(func([]byte) bool)", r0, "fixture.rows")) }, "*NativeBox.Writer": func(f *evmbind.Frame) { r0 := readPtrNativeBox(f, f.CallArgument(0)).Writer() f.SetCallResult(0, writeNativeFunction16(f, r0)) }, "NativeSlot": func(f *evmbind.Frame) { r0 := f.Host.(interface{ NativeSlot(*evm.VM) *api.NativeBox }).NativeSlot(f.VM) f.SetCallResult(0, writePtrNativeBox(f, r0)) }, "Register": func(f *evmbind.Frame) { f.Host.(interface{ Register(*evm.VM, *evm.Callable) }).Register(f.VM, readFunction3(f, f.CallArgument(0))) }, "RegisterRows": func(f *evmbind.Frame) { f.Host.(interface{ RegisterRows(*evm.VM, *evm.Callable) }).RegisterRows(f.VM, readFunction1(f, f.CallArgument(0))) }, "RegisterText": func(f *evmbind.Frame) { f.Host.(interface{ RegisterText(*evm.VM, *evm.Callable) }).RegisterText(f.VM, readFunction4(f, f.CallArgument(0))) }, "RegisterValue": func(f *evmbind.Frame) { f.Host.(interface{ RegisterValue(*evm.VM, *evm.Callable) }).RegisterValue(f.VM, readFunction2(f, f.CallArgument(0))) }, "Slot": func(f *evmbind.Frame) { r0 := f.Host.(interface { Slot(*evm.VM) *api.FunctionSlot }).Slot(f.VM) f.SetCallResult(0, writePtrFunctionSlot(f, r0)) }, "Strings": func(f *evmbind.Frame) { f.Host.(interface{ Strings(*evm.VM, []string) }).Strings(f.VM, readCollection12(f, f.CallArgument(0))) }, }, Direct: map[string]evmbind.DirectFactory{ "NativeSlot": func(host any) evm.DirectFunc { h := host.(interface{ NativeSlot(*evm.VM) *api.NativeBox }) return func(c *evm.VM, x, y values.Value) (v values.Value, err error) { defer evmbind.Catch("NativeSlot", &err) out := h.NativeSlot(c) v = writePtrNativeBox(nil, out) return v, nil } }, "Slot": func(host any) evm.DirectFunc { h := host.(interface { Slot(*evm.VM) *api.FunctionSlot }) return func(c *evm.VM, x, y values.Value) (v values.Value, err error) { defer evmbind.Catch("Slot", &err) out := h.Slot(c) v = writePtrFunctionSlot(nil, out) return v, nil } }, }}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.