- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for cstdint (0.23 sec)
-
src/cmd/cgo/internal/test/callback_c_gc.c
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gc #include "_cgo_export.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> /* Test calling panic from C. This is what SWIG does. */ extern void crosscall2(void (*fn)(void *, int), void *, int); extern void _cgo_panic(void *, int);
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 592 bytes - Viewed (0) -
src/cmd/cgo/doc.go
// #include <stdio.h> // #include <stdlib.h> // // static void myprint(char* s) { // printf("%s\n", s); // } import "C" import "unsafe" func main() { cs := C.CString("Hello from stdio") C.myprint(cs) C.free(unsafe.Pointer(cs)) } A few special functions convert between Go and C types by making copies of the data. In pseudo-Go definitions:
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) -
api/go1.13.txt
pkg syscall (netbsd-arm64-cgo), type Timeval struct, Usec int32 pkg syscall (netbsd-arm64-cgo), type WaitStatus uint32 pkg syscall (netbsd-arm64-cgo), var Stderr int pkg syscall (netbsd-arm64-cgo), var Stdin int pkg syscall (netbsd-arm64-cgo), var Stdout int pkg syscall (netbsd-arm64), const AF_APPLETALK = 16 pkg syscall (netbsd-arm64), const AF_APPLETALK ideal-int pkg syscall (netbsd-arm64), const AF_ARP = 28
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Aug 08 18:44:16 GMT 2019 - 452.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback_c_gccgo.c
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gccgo #include "_cgo_export.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> /* Test calling panic from C. This is what SWIG does. */ extern void _cgo_panic(const char *); extern void *_cgo_allocate(size_t); void callPanic(void) {
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 452 bytes - Viewed (0) -
api/go1.2.txt
pkg syscall (freebsd-386-cgo), type Timeval struct, Usec int32 pkg syscall (freebsd-386-cgo), type WaitStatus uint32 pkg syscall (freebsd-386-cgo), var Stderr int pkg syscall (freebsd-386-cgo), var Stdin int pkg syscall (freebsd-386-cgo), var Stdout int pkg syscall (freebsd-amd64), const F_DUP2FD_CLOEXEC = 18 pkg syscall (freebsd-amd64), const F_DUP2FD_CLOEXEC ideal-int
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 18 04:36:59 GMT 2013 - 1.9M bytes - Viewed (2) -
src/cmd/cgo/gcc.go
return c } // gccDebug runs gcc -gdwarf-2 over the C program stdin and // returns the corresponding DWARF data and, if present, debug data block. func (p *Package) gccDebug(stdin []byte, nnames int) (d *dwarf.Data, ints []int64, floats []float64, strs []string) { runGcc(stdin, p.gccCmd()) isDebugInts := func(s string) bool {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0) -
src/cmd/addr2line/addr2line_test.go
t.Fatalf("error reading symbols: %v", err) } return syms } func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) { cmd := testenv.Command(t, addr2linePath(t), dbgExePath) cmd.Stdin = strings.NewReader(addr) out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("go tool addr2line %v: %v\n%s", os.Args[0], err, string(out)) } f := strings.Split(string(out), "\n") if len(f) < 3 && f[2] == "" {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 22:16:54 GMT 2024 - 3.8K bytes - Viewed (0) -
src/bufio/example_test.go
b = append(b, ' ') w.Write(b) } w.Flush() // Output: 1 2 3 4 } // The simplest use of a Scanner, to read standard input as a set of lines. func ExampleScanner_lines() { scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { fmt.Println(scanner.Text()) // Println will add back the final '\n' } if err := scanner.Err(); err != nil { fmt.Fprintln(os.Stderr, "reading standard input:", err) } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Oct 23 09:06:30 GMT 2023 - 4.9K bytes - Viewed (0) -
api/go1.txt
pkg os, var ErrExist error pkg os, var ErrInvalid error pkg os, var ErrNotExist error pkg os, var ErrPermission error pkg os, var Interrupt Signal pkg os, var Kill Signal pkg os, var Stderr *File pkg os, var Stdin *File pkg os, var Stdout *File pkg os/exec, func Command(string, ...string) *Cmd pkg os/exec, func LookPath(string) (string, error) pkg os/exec, method (*Cmd) CombinedOutput() ([]uint8, error)
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1) -
api/go1.16.txt
pkg syscall (darwin-arm64), type Timeval32 struct, Usec int32 pkg syscall (darwin-arm64), type WaitStatus uint32 pkg syscall (darwin-arm64), var Stderr int pkg syscall (darwin-arm64), var Stdin int pkg syscall (darwin-arm64), var Stdout int pkg syscall (darwin-arm64-cgo), const AF_APPLETALK = 16 pkg syscall (darwin-arm64-cgo), const AF_APPLETALK ideal-int pkg syscall (darwin-arm64-cgo), const AF_CCITT = 10
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Dec 02 16:30:41 GMT 2022 - 479.2K bytes - Viewed (0)