Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for lety (0.23 sec)

  1. misc/wasm/wasm_exec.js

    					return;
    				}
    
    				let id = this._ids.get(v);
    				if (id === undefined) {
    					id = this._idPool.pop();
    					if (id === undefined) {
    						id = this._values.length;
    					}
    					this._values[id] = v;
    					this._goRefCounts[id] = 0;
    					this._ids.set(v, id);
    				}
    				this._goRefCounts[id]++;
    				let typeFlag = 0;
    				switch (typeof v) {
    					case "object":
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/arena/arena.go

    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    // to more easily let an arena-allocated value out-live its arena.
    // T must be a pointer, a slice, or a string, otherwise this function will panic.
    func Clone[T any](s T) T {
    	return runtime_arena_heapify(s).(T)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    The extra functions here are stubs to satisfy the references in the C
    code generated for gcc. The build process links this stub, along with
    _cgo_export.c and *.cgo2.c, into a dynamic executable and then lets
    cgo examine the executable. Cgo records the list of shared library
    references and resolved names and writes them into a new file
    _cgo_import.go, which looks like:
    
    	//go:cgo_dynamic_linker "/lib64/ld-linux-x86-64.so.2"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec.html

    				const source = await (await resp).arrayBuffer();
    				return await WebAssembly.instantiate(source, importObject);
    			};
    		}
    
    		const go = new Go();
    		let mod, inst;
    		WebAssembly.instantiateStreaming(fetch("test.wasm"), go.importObject).then((result) => {
    			mod = result.module;
    			inst = result.instance;
    			document.getElementById("runButton").disabled = false;
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Oct 02 17:25:11 GMT 2018
    - 1.3K bytes
    - Viewed (0)
  5. src/bytes/buffer.go

    		b.buf = make([]byte, n, smallBufferSize)
    		return 0
    	}
    	c := cap(b.buf)
    	if n <= c/2-m {
    		// We can slide things down instead of allocating a new
    		// slice. We only need m+n <= c to slide, but
    		// we instead let capacity get twice as large so we
    		// don't spend all our time copying.
    		copy(b.buf, b.buf[b.off:])
    	} else if c > maxInt-c-n {
    		panic(ErrTooLarge)
    	} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    	//
    	// Rewrite C.f(p) to
    	//    func() {
    	//            _cgo0 := p
    	//            _cgoCheckPointer(_cgo0, nil)
    	//            C.f(_cgo0)
    	//    }()
    	// Using a function literal like this lets us evaluate the
    	// function arguments only once while doing pointer checks.
    	// This is particularly useful when passing additional arguments
    	// to _cgoCheckPointer, as done in checkIndex and checkAddr.
    	//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. src/bufio/scan.go

    			s.buf = newBuf
    			s.end -= s.start
    			s.start = 0
    		}
    		// Finally we can read some input. Make sure we don't get stuck with
    		// a misbehaving Reader. Officially we don't need to do this, but let's
    		// be extra careful: Scanner is for safe, simple jobs.
    		for loop := 0; ; {
    			n, err := s.r.Read(s.buf[s.end:len(s.buf)])
    			if n < 0 || len(s.buf)-s.end < n {
    				s.setErr(ErrBadReadCount)
    				break
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  8. doc/asm.html

    on the <code>TEXT</code> instruction.
    Otherwise, pointer information must be provided by
    a Go prototype for the function in a Go source file,
    even for assembly functions not called directly from Go.
    (The prototype will also let <code>go</code> <code>vet</code> check the argument references.)
    At the start of the function, the arguments are assumed
    to be initialized but the results are assumed uninitialized.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/input.go

    		in.expectText("expected identifier after '#'")
    	}
    	if !in.enabled() {
    		// Can only start including again if we are at #else or #endif but also
    		// need to keep track of nested #if[n]defs.
    		// We let #line through because it might affect errors.
    		switch in.Stack.Text() {
    		case "else", "endif", "ifdef", "ifndef", "line":
    			// Press on.
    		default:
    			return false
    		}
    	}
    	switch in.Stack.Text() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    				p.errorf("misplaced //go:build comment")
    			}
    			continue
    		}
    		if tok != '\n' {
    			p.sawCode = true
    		}
    		if tok == '#' {
    			// A leftover wisp of a #include/#define/etc,
    			// to let us know that p.sawCode should be true now.
    			// Otherwise ignored.
    			continue
    		}
    		return tok
    	}
    }
    
    // line consumes a single assembly line from p.lex of the form
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top