- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for msglen (0.2 sec)
-
src/syscall/js/js_test.go
src := make([]byte, tt.srcLen) if tt.srcLen >= 2 { src[1] = 42 } dst := js.Global().Get("Uint8Array").New(tt.dstLen) if got, want := js.CopyBytesToJS(dst, src), tt.copyLen; got != want { t.Errorf("copied %d, want %d", got, want) } if tt.dstLen >= 2 { if got, want := dst.Index(1).Int(), 42; got != want { t.Errorf("got %d, want %d", got, want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0) -
src/runtime/tracestack.go
var frame traceFrame frame.PC = f.PC fn := f.Function const maxLen = 1 << 10 if len(fn) > maxLen { fn = fn[len(fn)-maxLen:] } frame.funcID = trace.stringTab[gen%2].put(gen, fn) frame.line = uint64(f.Line) file := f.File if len(file) > maxLen { file = file[len(file)-maxLen:] } frame.fileID = trace.stringTab[gen%2].put(gen, file) return frame }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:56 UTC 2024 - 11K bytes - Viewed (0) -
pilot/pkg/networking/core/tracing_test.go
}, } return t } func fakeTracingConfigNoProvider(randomSampling float64, maxLen uint32, tags []*tracing.CustomTag) *hcm.HttpConnectionManager_Tracing { return fakeTracingConfig(nil, randomSampling, maxLen, tags) } func fakeTracingConfig(provider *tracingcfg.Tracing_Http, randomSampling float64, maxLen uint32, tags []*tracing.CustomTag) *hcm.HttpConnectionManager_Tracing { t := &hcm.HttpConnectionManager_Tracing{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 20:47:52 UTC 2024 - 38.6K bytes - Viewed (0) -
src/testing/benchmark.go
// iterations of this benchmarks should be run. func (b *B) run1() bool { if ctx := b.context; ctx != nil { // Extend maxLen, if needed. if n := len(b.name) + ctx.extLen + 1; n > ctx.maxLen { ctx.maxLen = n + 8 // Add additional slack to avoid too many jumps in size. } } go func() { // Signal that we're done whether we return normally
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23.9K bytes - Viewed (0) -
src/runtime/heapdump.go
// conservative - everything might be a pointer for off := child.argoff; off < child.argoff+child.arglen; off += goarch.PtrSize { dumpint(fieldKindPtr) dumpint(uint64(off)) } } // Dump fields in the local vars section if stkmap == nil { // No locals information, dump everything. for off := child.arglen; off < s.varp-s.sp; off += goarch.PtrSize { dumpint(fieldKindPtr) dumpint(uint64(off)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 17.6K bytes - Viewed (0) -
src/go/types/check_test.go
if i := bytes.Index(src, []byte("-")); i < 0 || len(bytes.TrimSpace(src[:i])) != 0 { return nil // comment doesn't start with a "-" } end := bytes.Index(src, []byte("\n")) const maxLen = 256 if end < 0 || end > maxLen { return fmt.Errorf("flags comment line too long") } return flags.Parse(strings.Fields(string(src[:end]))) } // testFiles type-checks the package consisting of the given files, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
if i := bytes.Index(src, []byte("-")); i < 0 || len(bytes.TrimSpace(src[:i])) != 0 { return nil // comment doesn't start with a "-" } end := bytes.Index(src, []byte("\n")) const maxLen = 256 if end < 0 || end > maxLen { return fmt.Errorf("flags comment line too long") } return flags.Parse(strings.Fields(string(src[:end]))) } // testFiles type-checks the package consisting of the given files, and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/runtime/mbarrier.go
// // Do not remove or change the type signature. // See go.dev/issue/67401. // //go:linkname typedslicecopy //go:nosplit func typedslicecopy(typ *_type, dstPtr unsafe.Pointer, dstLen int, srcPtr unsafe.Pointer, srcLen int) int { n := dstLen if n > srcLen { n = srcLen } if n == 0 { return 0 } // The compiler emits calls to typedslicecopy before
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 15.7K bytes - Viewed (0) -
src/internal/reflectlite/value.go
func (v Value) Kind() Kind { return v.kind() } // implemented in runtime: //go:noescape func chanlen(unsafe.Pointer) int //go:noescape func maplen(unsafe.Pointer) int // Len returns v's length. // It panics if v's Kind is not Array, Chan, Map, Slice, or String. func (v Value) Len() int { k := v.kind() switch k { case abi.Array:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 13.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/check.go
} for _, v := range b.Values { // Check to make sure argument count makes sense (argLen of -1 indicates // variable length args) nArgs := opcodeTable[v.Op].argLen if nArgs != -1 && int32(len(v.Args)) != nArgs { f.Fatalf("value %s has %d args, expected %d", v.LongString(), len(v.Args), nArgs) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 16:41:23 UTC 2024 - 17.6K bytes - Viewed (0)