Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for exports (0.17 sec)

  1. misc/wasm/wasm_exec.js

    						const n = this.mem.getInt32(sp + 24, true);
    						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
    					},
    
    					// func resetMemoryDataView()
    					"runtime.resetMemoryDataView": (sp) => {
    						sp >>>= 0;
    						this.mem = new DataView(this._inst.exports.mem.buffer);
    					},
    
    					// func nanotime1() int64
    					"runtime.nanotime1": (sp) => {
    						sp >>>= 0;
    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/cmd/cgo/doc.go

    of memory. Because C.malloc cannot fail, it has no two-result form
    that returns errno.
    
    # C references to Go
    
    Go functions can be exported for use by C code in the following way:
    
    	//export MyFunction
    	func MyFunction(arg1, arg2 int, arg3 string) int64 {...}
    
    	//export MyFunction2
    	func MyFunction2(arg1, arg2 int, arg3 string) (int64, *C.char) {...}
    
    They will be available in the C code as:
    
    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)
  3. src/cmd/cgo/ast.go

    			error_(c.Pos(), "export missing name")
    		}
    
    		if name != n.Name.Name {
    			error_(c.Pos(), "export comment has wrong name %q, want %q", name, n.Name.Name)
    		}
    
    		doc := ""
    		for _, c1 := range n.Doc.List {
    			if c1 != c {
    				doc += c1.Text + "\n"
    			}
    		}
    
    		f.ExpFunc = append(f.ExpFunc, &ExpFunc{
    			Func:    n,
    			ExpName: name,
    			Doc:     doc,
    		})
    		break
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    // then readFrom uses Seek to skip past holes defined in Header.SparseHoles,
    // assuming that skipped regions are all NULs.
    // This always reads the last byte to ensure r is the right size.
    //
    // TODO(dsnet): Re-export this when adding sparse file support.
    // See https://golang.org/issue/22735
    func (tw *Writer) readFrom(r io.Reader) (int64, error) {
    	if tw.err != nil {
    		return 0, tw.err
    	}
    	n, err := tw.curr.ReadFrom(r)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  5. src/cmd/api/main_test.go

    			for k, v := range pkg.ImportMap {
    				importMap[pkg.Dir][k] = v
    			}
    		}
    
    		sort.Strings(stdPackages)
    		imports = listImports{
    			stdPackages: stdPackages,
    			importMap:   importMap,
    			importDir:   importDir,
    		}
    		imports, _ = listCache.LoadOrStore(name, imports)
    	}
    
    	li := imports.(listImports)
    	w.stdPackages = li.stdPackages
    	w.importDir = li.importDir
    	w.importMap = li.importMap
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  6. misc/go_android_exec/main.go

    		}
    	}()
    	cmd := `export TMPDIR="` + deviceGotmp + `"` +
    		`; export GOROOT="` + deviceGoroot + `"` +
    		`; export GOPATH="` + deviceGopath + `"` +
    		`; export CGO_ENABLED=0` +
    		`; export GOPROXY=` + os.Getenv("GOPROXY") +
    		`; export GOCACHE="` + deviceRoot + `/gocache"` +
    		`; export PATH="` + deviceGoroot + `/bin":$PATH` +
    		`; export HOME="` + deviceRoot + `/home"` +
    		`; cd "` + deviceCwd + `"` +
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  7. src/archive/tar/reader.go

    // then writeTo uses Seek to skip past holes defined in Header.SparseHoles,
    // assuming that skipped regions are filled with NULs.
    // This always writes the last byte to ensure w is the right size.
    //
    // TODO(dsnet): Re-export this when adding sparse file support.
    // See https://golang.org/issue/22735
    func (tr *Reader) writeTo(w io.Writer) (int64, error) {
    	if tr.err != nil {
    		return 0, tr.err
    	}
    	n, err := tr.curr.WriteTo(w)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. api/go1.11.txt

    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_EXCEPTION = 3
    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_EXCEPTION ideal-int
    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_EXPORT = 0
    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_EXPORT ideal-int
    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_GLOBALPTR = 8
    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_GLOBALPTR ideal-int
    pkg debug/pe, const IMAGE_DIRECTORY_ENTRY_IAT = 12
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 22 03:48:56 GMT 2018
    - 25K bytes
    - Viewed (2)
Back to top