- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for 100 (0.16 sec)
-
src/bytes/buffer_test.go
tmp := make([]byte, 72) for _, growLen := range []int{0, 100, 1000, 10000, 100000} { for _, startLen := range []int{0, 100, 1000, 10000, 100000} { xBytes := Repeat(x, startLen) buf := NewBuffer(xBytes) // If we read, this affects buf.off, which is good to test. readBytes, _ := buf.Read(tmp) yBytes := Repeat(y, growLen) allocs := testing.AllocsPerRun(100, func() { buf.Grow(growLen) buf.Write(yBytes)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 13:31:36 GMT 2024 - 18.6K bytes - Viewed (0) -
src/archive/tar/strconv_test.go
v.sec, v.nsec, got, v.want) } } } func TestParsePAXRecord(t *testing.T) { medName := strings.Repeat("CD", 50) longName := strings.Repeat("AB", 100) vectors := []struct { in string wantRes string wantKey string wantVal string ok bool }{ {"6 k=v\n\n", "\n", "k", "v", true},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Feb 09 05:28:50 GMT 2021 - 14K bytes - Viewed (0) -
src/bufio/bufio_test.go
r := strings.NewReader(" foo foo 42 42 42 42 42 42 42 42 4.2 4.2 4.2 4.2\n") buf := NewReader(r) allocs := testing.AllocsPerRun(100, func() { r.Seek(0, io.SeekStart) buf.Reset(r) _, err := buf.ReadString('\n') if err != nil { t.Fatal(err) } }) if allocs != 1 {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 10 18:56:01 GMT 2023 - 51.5K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
if in.peek { in.peek = false tok := in.peekToken in.text = in.peekText return tok } // If we cannot generate a token after 100 macro invocations, we're in trouble. // The usual case is caught by Push, below, but be safe. for nesting := 0; nesting < 100; { tok := in.Stack.Next() switch tok { case '#': if !in.beginningOfLine { in.Error("'#' must be first item on line") }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 12.6K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback_windows.go
"test.goCallback", "test._Cfunc_callback", "test.nestedCall.func1", "test.nestedCall", "test.testCallbackCallersSEH", "test.TestCallbackCallersSEH", } pc := make([]uintptr, 100) n := 0 nestedCall(func() { n = int(C.backtrace(C.DWORD(len(pc)), (*C.PVOID)(unsafe.Pointer(&pc[0])))) }) got := make([]string, 0, n) for i := 0; i < n; i++ { f := runtime.FuncForPC(pc[i] - 1)
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Nov 29 16:01:37 GMT 2023 - 2.6K bytes - Viewed (0) -
doc/go1.17_spec.html
</pre> <p> produces the same slice as allocating an array and <a href="#Slice_expressions">slicing</a> it, so these two expressions are equivalent: </p> <pre> make([]int, 50, 100) new([100]int)[0:50] </pre> <p> Like arrays, slices are always one-dimensional but may be composed to construct higher-dimensional objects.
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
api/go1.12.txt
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 02 21:21:53 GMT 2019 - 13.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/callback.go
// into Go. func testCallbackCallers(t *testing.T) { if runtime.Compiler != "gc" { // The exact function names are not going to be the same. t.Skip("skipping for non-gc toolchain") } pc := make([]uintptr, 100) n := 0 name := []string{ "runtime.cgocallbackg1", "runtime.cgocallbackg", "runtime.cgocallback", "runtime.systemstack_switch", "runtime.cgocall", "test._Cfunc_callback",
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) -
api/go1.5.txt
pkg debug/elf, const R_PPC64_TPREL16_HIGHERA R_PPC64 pkg debug/elf, const R_PPC64_TPREL16_HIGHEST = 99 pkg debug/elf, const R_PPC64_TPREL16_HIGHEST R_PPC64 pkg debug/elf, const R_PPC64_TPREL16_HIGHESTA = 100 pkg debug/elf, const R_PPC64_TPREL16_HIGHESTA R_PPC64 pkg debug/elf, const R_PPC64_TPREL16_LO = 70 pkg debug/elf, const R_PPC64_TPREL16_LO R_PPC64 pkg debug/elf, const R_PPC64_TPREL16_LO_DS = 96
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jul 30 21:14:09 GMT 2015 - 46.6K bytes - Viewed (0) -
api/go1.13.txt
pkg syscall (netbsd-arm64-cgo), const IFT_VIRTUALTG ideal-int pkg syscall (netbsd-arm64-cgo), const IFT_VOICEDID = 213 pkg syscall (netbsd-arm64-cgo), const IFT_VOICEDID ideal-int pkg syscall (netbsd-arm64-cgo), const IFT_VOICEEM = 100 pkg syscall (netbsd-arm64-cgo), const IFT_VOICEEMFGD = 211 pkg syscall (netbsd-arm64-cgo), const IFT_VOICEEMFGD ideal-int pkg syscall (netbsd-arm64-cgo), const IFT_VOICEEM ideal-int
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)