github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/resourcesprivate/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/resourcesprivate constof_Component
    20  //go:noescape
    21  func ConstOfComponent(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/resourcesprivate has_GetStrings
    24  //go:noescape
    25  func HasFuncGetStrings() js.Ref
    26  
    27  //go:wasmimport plat/js/webext/resourcesprivate func_GetStrings
    28  //go:noescape
    29  func FuncGetStrings(fn unsafe.Pointer)
    30  
    31  //go:wasmimport plat/js/webext/resourcesprivate call_GetStrings
    32  //go:noescape
    33  func CallGetStrings(
    34  	retPtr unsafe.Pointer,
    35  	component uint32)
    36  
    37  //go:wasmimport plat/js/webext/resourcesprivate try_GetStrings
    38  //go:noescape
    39  func TryGetStrings(
    40  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
    41  	component uint32) (ok js.Ref)