- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for rack (0.2 sec)
-
src/arena/arena.go
*/ package arena import ( "internal/reflectlite" "unsafe" ) // Arena represents a collection of Go values allocated and freed together. // Arenas are useful for improving efficiency as they may be freed back to // the runtime manually, though any memory obtained from freed arenas must // not be accessed once that happens. An Arena is automatically freed once // it is no longer referenced, so it must be kept alive (see runtime.KeepAlive)
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Oct 12 20:23:36 GMT 2022 - 4.3K bytes - Viewed (0) -
src/cmd/cgo/doc.go
n, err = C.sqrt(-1) _, err := C.voidFunc() var n, err = C.sqrt(1) Calling C function pointers is currently not supported, however you can declare Go variables which hold C function pointers and pass them back and forth between Go and C. C code may call function pointers received from Go. For example: package main // typedef int (*intFunc) (); // // int // bridge_int_func(intFunc f) // {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
src/cmd/cgo/ast.go
func (f *File) ParseGo(abspath string, src []byte) { // Two different parses: once with comments, once without. // The printer is not good enough at printing comments in the // right place when we start editing the AST behind its back, // so we use ast1 to look for the doc comments on import "C" // and on exported functions, and we use ast2 for translating // and reprinting. // In cgo mode, we ignore ast2 and just apply edits directly
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Jun 07 16:54:27 GMT 2023 - 14.3K bytes - Viewed (0) -
src/bufio/bufio_test.go
// Normal execution. for { r1, _, err := r.ReadRune() if err != nil { if err != io.EOF { t.Error("unexpected error on ReadRune:", err) } break } got += string(r1) // Put it back and read it again. if err = r.UnreadRune(); err != nil { t.Fatal("unexpected error on UnreadRune:", err) } r2, _, err := r.ReadRune() if err != nil {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Feb 10 18:56:01 GMT 2023 - 51.5K bytes - Viewed (0) -
src/bytes/buffer_test.go
} b = b[0:n] // Check the resulting bytes if !Equal(buf.Bytes(), b) { t.Fatalf("incorrect result from WriteRune: %q not %q", buf.Bytes(), b) } p := make([]byte, utf8.UTFMax) // Read it back with ReadRune for r := rune(0); r < NRune; r++ { size := utf8.EncodeRune(p, r) nr, nbytes, err := buf.ReadRune() if nr != r || nbytes != size || err != nil {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Apr 20 01:07:29 GMT 2023 - 18.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
"unsafe" ) // Pass a func value from nestedCall to goCallback using an integer token. var callbackMutex sync.Mutex var callbackToken int var callbackFuncs = make(map[int]func()) // nestedCall calls into C, back into Go, and finally to f. func nestedCall(f func()) { // callback(x) calls goCallback(x) callbackMutex.Lock() callbackToken++ i := callbackToken callbackFuncs[i] = f callbackMutex.Unlock()
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0) -
doc/go1.17_spec.html
raw string literals and interpreted string literals. </p> <p> Raw string literals are character sequences between back quotes, as in <code>`foo`</code>. Within the quotes, any character may appear except back quote. The value of a raw string literal is the string composed of the uninterpreted (implicitly UTF-8-encoded) characters between the quotes;
HTML - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/archive/zip/writer_test.go
// write a zip file buf := new(bytes.Buffer) w := NewWriter(buf) for _, wt := range writeTests { testCreate(t, w, &wt) } if err := w.Close(); err != nil { t.Fatal(err) } // read it back r, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len())) if err != nil { t.Fatal(err) } for i, wt := range writeTests { testReadFile(t, r.File[i], &wt) } }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Sep 15 19:04:06 GMT 2023 - 14.1K bytes - Viewed (0) -
src/cmd/asm/internal/arch/arm.go
func ARMConditionCodes(prog *obj.Prog, cond string) bool { if cond == "" { return true } bits, ok := ParseARMCondition(cond) if !ok { return false } /* hack to make B.NE etc. work: turn it into the corresponding conditional */ if prog.As == arm.AB { prog.As = bcode[(bits^arm.C_SCOND_XOR)&0xf] bits = (bits &^ 0xf) | arm.C_SCOND_NONE } prog.Scond = bits return true
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Nov 18 17:59:44 GMT 2022 - 6.1K bytes - Viewed (0) -
src/archive/tar/common.go
// A Header represents a single header in a tar archive. // Some fields may not be populated. // // For forward compatibility, users that retrieve a Header from Reader.Next, // mutate it in some ways, and then pass it back to Writer.WriteHeader // should do so by creating a new Header and copying the fields // that they are interested in preserving. type Header struct { // Typeflag is the type of header entry.
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24.7K bytes - Viewed (2)