github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/idltest/bindings/import_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build wasm 5 6 package bindings 7 8 import ( 9 "unsafe" 10 11 "github.com/primecitizens/pcz/std/ffi/js" 12 ) 13 14 type ( 15 _ unsafe.Pointer 16 _ js.Ref 17 ) 18 19 //go:wasmimport plat/js/webext/idltest has_GetArrayBuffer 20 //go:noescape 21 func HasFuncGetArrayBuffer() js.Ref 22 23 //go:wasmimport plat/js/webext/idltest func_GetArrayBuffer 24 //go:noescape 25 func FuncGetArrayBuffer(fn unsafe.Pointer) 26 27 //go:wasmimport plat/js/webext/idltest call_GetArrayBuffer 28 //go:noescape 29 func CallGetArrayBuffer( 30 retPtr unsafe.Pointer) 31 32 //go:wasmimport plat/js/webext/idltest try_GetArrayBuffer 33 //go:noescape 34 func TryGetArrayBuffer( 35 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 36 37 //go:wasmimport plat/js/webext/idltest has_NocompileFunc 38 //go:noescape 39 func HasFuncNocompileFunc() js.Ref 40 41 //go:wasmimport plat/js/webext/idltest func_NocompileFunc 42 //go:noescape 43 func FuncNocompileFunc(fn unsafe.Pointer) 44 45 //go:wasmimport plat/js/webext/idltest call_NocompileFunc 46 //go:noescape 47 func CallNocompileFunc( 48 retPtr unsafe.Pointer, 49 switch_ int32) 50 51 //go:wasmimport plat/js/webext/idltest try_NocompileFunc 52 //go:noescape 53 func TryNocompileFunc( 54 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 55 switch_ int32) (ok js.Ref) 56 57 //go:wasmimport plat/js/webext/idltest has_SendArrayBuffer 58 //go:noescape 59 func HasFuncSendArrayBuffer() js.Ref 60 61 //go:wasmimport plat/js/webext/idltest func_SendArrayBuffer 62 //go:noescape 63 func FuncSendArrayBuffer(fn unsafe.Pointer) 64 65 //go:wasmimport plat/js/webext/idltest call_SendArrayBuffer 66 //go:noescape 67 func CallSendArrayBuffer( 68 retPtr unsafe.Pointer, 69 input js.Ref) 70 71 //go:wasmimport plat/js/webext/idltest try_SendArrayBuffer 72 //go:noescape 73 func TrySendArrayBuffer( 74 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 75 input js.Ref) (ok js.Ref) 76 77 //go:wasmimport plat/js/webext/idltest has_SendArrayBufferView 78 //go:noescape 79 func HasFuncSendArrayBufferView() js.Ref 80 81 //go:wasmimport plat/js/webext/idltest func_SendArrayBufferView 82 //go:noescape 83 func FuncSendArrayBufferView(fn unsafe.Pointer) 84 85 //go:wasmimport plat/js/webext/idltest call_SendArrayBufferView 86 //go:noescape 87 func CallSendArrayBufferView( 88 retPtr unsafe.Pointer, 89 input js.Ref) 90 91 //go:wasmimport plat/js/webext/idltest try_SendArrayBufferView 92 //go:noescape 93 func TrySendArrayBufferView( 94 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 95 input js.Ref) (ok js.Ref)