Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 697 for gojs (0.04 sec)

  1. src/syscall/js/js.go

    	return string(b)
    }
    
    //go:wasmimport gojs syscall/js.valuePrepareString
    func valuePrepareString(v ref) (ref, int)
    
    // valueLoadString loads string data located at ref v into byte slice b.
    //
    // (noescape): This is safe because the byte slice is only used as a destination
    //             for storing the string data and references to it are not maintained.
    //
    //go:wasmimport gojs syscall/js.valueLoadString
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/runtime/os_js.go

    	if fd > 2 {
    		throw("runtime.write to fd > 2 is unsupported")
    	}
    	wasmWrite(fd, p, n)
    	return n
    }
    
    //go:wasmimport gojs runtime.wasmWrite
    //go:noescape
    func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
    
    func usleep(usec uint32) {
    	// TODO(neelance): implement usleep
    }
    
    //go:wasmimport gojs runtime.getRandomData
    //go:noescape
    func getRandomData(r []byte)
    
    func readRandom(r []byte) int {
    	getRandomData(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 767 bytes
    - Viewed (0)
  3. src/runtime/lock_js.go

    	idleTimeout = nil
    }
    
    // pause sets SP to newsp and pauses the execution of Go's WebAssembly code until an event is triggered.
    func pause(newsp uintptr)
    
    // scheduleTimeoutEvent tells the WebAssembly environment to trigger an event after ms milliseconds.
    // It returns a timer id that can be used with clearTimeoutEvent.
    //
    //go:wasmimport gojs runtime.scheduleTimeoutEvent
    func scheduleTimeoutEvent(ms int64) int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/abi.go

    	}
    	if wi.Module == wasm.GojsModule {
    		// Functions that are imported from the "gojs" module use a special
    		// ABI that just accepts the stack pointer.
    		// Example:
    		//
    		// 	//go:wasmimport gojs add
    		// 	func importedAdd(a, b uint) uint
    		//
    		// will roughly become
    		//
    		// 	(import "gojs" "add" (func (param i32)))
    		wi.Params = []obj.WasmField{{Type: obj.WasmI32}}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/net/conf.go

    			case confVal.netGo:
    				if netGoBuildTag {
    					println("go package net: built with netgo build tag; using Go's DNS resolver")
    				} else {
    					println("go package net: GODEBUG setting forcing use of Go's resolver")
    				}
    			case !cgoAvailable:
    				println("go package net: cgo resolver not supported; using Go's DNS resolver")
    			case confVal.netCgo || confVal.preferCgo:
    				println("go package net: using cgo DNS resolver")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/cmd/distpack/pack.go

    	if goroot == "" {
    		log.Fatalf("missing $GOROOT")
    	}
    	gohostos = runtime.GOOS
    	gohostarch = runtime.GOARCH
    	goos = os.Getenv("GOOS")
    	if goos == "" {
    		goos = gohostos
    	}
    	goarch = os.Getenv("GOARCH")
    	if goarch == "" {
    		goarch = gohostarch
    	}
    	goosUnderGoarch := goos + "_" + goarch
    	goosDashGoarch := goos + "-" + goarch
    	exe := ""
    	if goos == "windows" {
    		exe = ".exe"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/make.bash

    # Default is "gcc". Also supported: "clang".
    #
    # CC_FOR_TARGET: Command line to run to compile C code for GOARCH.
    # This is used by cgo. Default is CC.
    #
    # CC_FOR_${GOOS}_${GOARCH}: Command line to run to compile C code for specified ${GOOS} and ${GOARCH}.
    # (for example, CC_FOR_linux_arm)
    # If this is not set, the build will use CC_FOR_TARGET if appropriate, or CC.
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:48:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcarchive/carchive_test.go

    	} else if GOOS == "darwin" && GOARCH == "amd64" {
    		t.Skipf("skipping on %s/%s: runtime does not permit SI_USER SIGSEGV", GOOS, GOARCH)
    	}
    	globalSkip(t)
    	checkSignalForwardingTest(t)
    	buildSignalForwardingTest(t)
    
    	// We want to send the process a signal and see if it dies.
    	// Normally the signal goes to the C thread, the Go signal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  9. src/runtime/extern.go

    // when possible, a release tag like "go1.3".
    func Version() string {
    	return buildVersion
    }
    
    // GOOS is the running program's operating system target:
    // one of darwin, freebsd, linux, and so on.
    // To view possible combinations of GOOS and GOARCH, run "go tool dist list".
    const GOOS string = goos.GOOS
    
    // GOARCH is the running program's architecture target:
    // one of 386, amd64, arm, s390x, and so on.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. src/cmd/dist/build.go

    	case "gc", "cmd_go_bootstrap", "go1.1":
    		return true
    	case "linux":
    		return goos == "linux" || goos == "android"
    	case "solaris":
    		return goos == "solaris" || goos == "illumos"
    	case "darwin":
    		return goos == "darwin" || goos == "ios"
    	case goos, goarch:
    		return true
    	case "unix":
    		return unixOS[goos]
    	default:
    		return false
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top