- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for stringStructOf (0.31 sec)
-
src/runtime/tracestring.go
tab traceMap } // put adds a string to the table, emits it, and returns a unique ID for it. func (t *traceStringTable) put(gen uintptr, s string) uint64 { // Put the string in the table. ss := stringStructOf(&s) id, added := t.tab.put(ss.str, uintptr(ss.len)) if added { // Write the string to the buffer. systemstack(func() { t.writeString(gen, id, s) }) } return id }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 2.4K bytes - Viewed (0) -
src/runtime/map_faststr.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 15.3K bytes - Viewed (0) -
src/runtime/print.go
// The compiler knows that a print of a value of this type // should use printhex instead of printuint (decimal). type hex uint64 func bytes(s string) (ret []byte) { rp := (*slice)(unsafe.Pointer(&ret)) sp := stringStructOf(&s) rp.array = sp.str rp.len = sp.len rp.cap = sp.len return } var ( // printBacklog is a circular buffer of messages written with the builtin
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 03:27:26 UTC 2023 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
"itabHashFunc", "nextslicecap", "noescape", "pcvalueCacheKey", "rand32", "readUnaligned32", "readUnaligned64", "releasem", "roundupsize", "stackmapdata", "stringStructOf", "subtract1", "subtractb", "tophash", "(*bmap).keys", "(*bmap).overflow", "(*waitq).enqueue", "funcInfo.entry", // GC-related ones "cgoInRange", "gclinkptr.ptr",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
src/runtime/string.go
} type stringStruct struct { str unsafe.Pointer len int } // Variant with *byte pointer type for DWARF debugging. type stringStructDWARF struct { str *byte len int } func stringStructOf(sp *string) *stringStruct { return (*stringStruct)(unsafe.Pointer(sp)) } func intstring(buf *[4]byte, v int64) (s string) { var b []byte if buf != nil { b = buf[:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/runtime/arena.go
// //go:linkname arena_heapify arena.runtime_arena_heapify func arena_heapify(s any) any { var v unsafe.Pointer e := efaceOf(&s) t := e._type switch t.Kind_ & abi.KindMask { case abi.String: v = stringStructOf((*string)(e.data)).str case abi.Slice: v = (*slice)(e.data).array case abi.Pointer: v = e.data default: panic("arena: Clone only supports pointers, slices, and strings") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0)