github.com/primecitizens/pcz/std@v0.2.1/ui/html/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 html
     7  
     8  import (
     9  	"unsafe"
    10  
    11  	"github.com/primecitizens/pcz/std/ffi/js"
    12  )
    13  
    14  //go:wasmimport ui/html/builder reset
    15  //go:noescape
    16  func reset(elem js.Ref)
    17  
    18  //go:wasmimport ui/html/builder free
    19  //go:noescape
    20  func free(elem js.Ref)
    21  
    22  //go:wasmimport ui/html/builder integer
    23  //go:noescape
    24  func integer(elem js.Ref, signed js.Ref, p64 unsafe.Pointer, radix uint32)
    25  
    26  //go:wasmimport ui/html/builder float
    27  //go:noescape
    28  func float(elem js.Ref, val float64)
    29  
    30  //go:wasmimport ui/html/builder buf_str
    31  //go:noescape
    32  func buf_str(elem js.Ref, str unsafe.Pointer, len uint32)
    33  
    34  //go:wasmimport ui/html/builder buf_jsstr
    35  //go:noescape
    36  func buf_jsstr(elem js.Ref, escape js.Ref, ptr unsafe.Pointer, len uint32)
    37  
    38  //go:wasmimport ui/html/builder flush
    39  //go:noescape
    40  func flush(elem js.Ref, append js.Ref)