- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 84 for exports (0.55 sec)
-
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;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 17:47:47 UTC 2023 - 16.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
} } func TestIssue59831(t *testing.T) { // Package a exports a type S with an unexported method m; // the tests check the error messages when m is not found. const asrc = `package a; type S struct{}; func (S) m() {}` apkg := mustTypecheck(asrc, nil, nil) // Package b exports a type S with an exported method m; // the tests check the error messages when M is not found.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/abi.go
// wrapper functions where necessary. func (s *SymABIs) GenABIWrappers() { // For cgo exported symbols, we tell the linker to export the // definition ABI to C. That also means that we don't want to // create ABI wrappers even if there's a linkname. // // TODO(austin): Maybe we want to create the ABI wrappers, but // ensure the linker exports the right ABI definition under // the unmangled name?
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
t.Fatalf("binary.Read failed: %v", err) } // Only the two exported functions and _cgo_dummy_export should be exported expectedNumber := uint32(3) if exportAllSymbols { if e.NumberOfFunctions <= expectedNumber { t.Fatalf("missing exported functions: %v", e.NumberOfFunctions) } if e.NumberOfNames <= expectedNumber { t.Fatalf("missing exported names: %v", e.NumberOfNames) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
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 } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named.go
// information is lazy. Specifically, a named type N may be constructed in any // of the following ways: // 1. type-checked from the source // 2. loaded eagerly from export data // 3. loaded lazily from export data (when using unified IR) // 4. instantiated from a generic type // // In cases 1, 3, and 4, it is possible that the underlying type or methods of // N may not be immediately available.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 23.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/ptr_test.go
support: `//export GoFn21 func GoFn21() *byte { return new(byte) }`, body: `C.GoFn21()`, fail: true, }, { // Returning a C pointer is fine. name: "exportok", c: `#include <stdlib.h> #ifdef _WIN32 __declspec(dllexport) #endif extern unsigned char *GoFn22();`, support: `//export GoFn22
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:49 UTC 2023 - 21.2K bytes - Viewed (0) -
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:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
var deps []*Action if a1.buggyInstall { // (*Builder).vet expects deps[0] to be the package // and deps[1] to be "fmt". If we see buggyInstall // here then a1 is an install of a shared library, // and the real package is a1.Deps[0]. deps = []*Action{a1.Deps[0], aFmt, a1} } else { deps = []*Action{a1, aFmt} } for _, p1 := range p.Internal.Imports { deps = append(deps, b.vetAction(mode, depMode, p1)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/cmd/doc/main.go
log.Printf("too many periods in symbol specification") usage() } symbol = elem[0] return } // isExported reports whether the name is an exported identifier. // If the unexported flag (-u) is true, isExported returns true because // it means that we treat the name as if it is exported. func isExported(name string) bool { return unexported || token.IsExported(name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0)