github.com/primecitizens/pcz/std@v0.2.1/core/sys/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  
    12  //go:wasmimport core/sys sizes
    13  //go:noescape
    14  func Sizes(outCount unsafe.Pointer) uint32
    15  
    16  //go:wasmimport core/sys nth
    17  //go:noescape
    18  func Nth(i uint32, buf unsafe.Pointer, sz uint32) int32