- Sort Score
- Result 10 results
- Languages All
Results 181 - 185 of 185 for iota (0.03 sec)
-
src/crypto/rc4/rc4.go
type Cipher struct { s [256]uint32 i, j uint8 } type KeySizeError int func (k KeySizeError) Error() string { return "crypto/rc4: invalid key size " + strconv.Itoa(int(k)) } // NewCipher creates and returns a new [Cipher]. The key argument should be the // RC4 key, at least 1 byte and at most 256 bytes. func NewCipher(key []byte) (*Cipher, error) { k := len(key)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/link/cgo_test.go
} out := string(bytes.TrimSpace(line)) t.Logf("%v: %q", cmd, out) return out } cc := goEnv("CC") cgoCflags := goEnv("CGO_CFLAGS") for test := 0; test < 2; test++ { t.Run(strconv.Itoa(test), func(t *testing.T) { testCGOLTO(t, cc, cgoCflags, test) }) } } const test1_main = ` package main /* extern int myadd(int, int); int c_add(int a, int b) { return myadd(a, b); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 09 22:13:02 UTC 2023 - 2.7K bytes - Viewed (0) -
src/log/slog/record_test.go
} // Currently, pc(2) takes over 400ns, which is too expensive // to call it for every log message. func BenchmarkPC(b *testing.B) { for depth := 0; depth < 5; depth++ { b.Run(strconv.Itoa(depth), func(b *testing.B) { b.ReportAllocs() var x uintptr for i := 0; i < b.N; i++ { x = callerPC(depth) } _ = x }) } } func BenchmarkRecord(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 15:10:55 UTC 2023 - 4K bytes - Viewed (0) -
src/os/fifo_test.go
} if err := f.Close(); err != nil { t.Error(err) return } } }() dir := t.TempDir() <-start for i := 0; i < attempts; i++ { name := filepath.Join(dir, strconv.Itoa(i)) if err := syscall.Mkfifo(name, 0o600); err != nil { t.Fatal(err) } // The problem only occurs if we use O_NONBLOCK here. rd, err := os.OpenFile(name, os.O_RDONLY|syscall.O_NONBLOCK, 0o600)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:47:23 UTC 2024 - 6.1K bytes - Viewed (0) -
src/net/http/sniff_test.go
log.Fatalf("%v: Write(%q) = %v, %v want %d, nil", tt.desc, tt.data, n, err, len(tt.data)) } })) defer cst.close() for i, tt := range sniffTests { resp, err := cst.c.Get(cst.ts.URL + "/?i=" + strconv.Itoa(i)) if err != nil { t.Errorf("%v: %v", tt.desc, err) continue } // DetectContentType is defined to return // text/plain; charset=utf-8 for an empty body,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 07 16:53:14 UTC 2022 - 9.6K bytes - Viewed (0)