- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for slicebytetostringtmp (0.24 sec)
-
test/fixedbugs/issue9691.go
// license that can be found in the LICENSE file. package main func main() { s := "foo" b := []byte(s) m := make(map[string]int) // Test that map index can be used in range // and that slicebytetostringtmp is not used in this context. for m[string(b)] = range s { } b[0] = 'b' if m["foo"] != 2 { panic("bad") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 28 15:14:04 UTC 2015 - 444 bytes - Viewed (0) -
src/runtime/string.go
} func rawstringtmp(buf *tmpBuf, l int) (s string, b []byte) { if buf != nil && l <= len(buf) { b = buf[:l] s = slicebytetostringtmp(&b[0], len(b)) } else { s, b = rawstring(l) } return } // slicebytetostringtmp returns a "string" referring to the actual []byte bytes. // // Callers need to ensure that the returned string will not be used after
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/cmd/internal/goobj/builtinlist.go
{"runtime.concatstring4", 1}, {"runtime.concatstring5", 1}, {"runtime.concatstrings", 1}, {"runtime.cmpstring", 1}, {"runtime.intstring", 1}, {"runtime.slicebytetostring", 1}, {"runtime.slicebytetostringtmp", 1}, {"runtime.slicerunetostring", 1}, {"runtime.stringtoslicebyte", 1}, {"runtime.stringtoslicerune", 1}, {"runtime.slicecopy", 1}, {"runtime.decoderune", 1}, {"runtime.countrunes", 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 7.4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
if !base.Flag.Cfg.Instrumenting { // Let the backend handle OBYTES2STRTMP directly // to avoid a function call to slicebytetostringtmp. return n } // slicebytetostringtmp(ptr *byte, n int) string n.X = cheapExpr(n.X, init) ptr, len := backingArrayPtrLen(n.X) return mkcall("slicebytetostringtmp", n.Type(), init, ptr, len) } // walkRuneToString walks an ORUNESTR node.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/_builtin/runtime.go
func concatstrings(*[32]byte, []string) string func cmpstring(string, string) int func intstring(*[4]byte, int64) string func slicebytetostring(buf *[32]byte, ptr *byte, n int) string func slicebytetostringtmp(ptr *byte, n int) string func slicerunetostring(*[32]byte, []rune) string func stringtoslicebyte(*[32]byte, string) []byte func stringtoslicerune(*[32]rune, string) []rune
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
{"concatstring4", funcTag, 36}, {"concatstring5", funcTag, 37}, {"concatstrings", funcTag, 39}, {"cmpstring", funcTag, 40}, {"intstring", funcTag, 43}, {"slicebytetostring", funcTag, 44}, {"slicebytetostringtmp", funcTag, 45}, {"slicerunetostring", funcTag, 48}, {"stringtoslicebyte", funcTag, 50}, {"stringtoslicerune", funcTag, 53}, {"slicecopy", funcTag, 54}, {"decoderune", funcTag, 55},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
src/runtime/debuglog.go
var tmpbuf [21]byte pnano := int64(nano) - runtimeInitTime if pnano < 0 { // Logged before runtimeInitTime was set. pnano = 0 } pnanoBytes := itoaDiv(tmpbuf[:], uint64(pnano), 9) print(slicebytetostringtmp((*byte)(noescape(unsafe.Pointer(&pnanoBytes[0]))), len(pnanoBytes))) print(" P ", p, "] ") for i := 0; s.begin < s.end; i++ { if i > 0 { print(" ") } if !s.printVal() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 18.3K bytes - Viewed (0) -
src/runtime/os_linux.go
return 0 } ptr := noescape(unsafe.Pointer(&numbuf[0])) n := read(fd, ptr, int32(len(numbuf))) closefd(fd) if n <= 0 { return 0 } n-- // remove trailing newline v, ok := atoi(slicebytetostringtmp((*byte)(ptr), int(n))) if !ok || v < 0 { v = 0 } if v&(v-1) != 0 { // v is not a power of 2 return 0 } return uintptr(v) } func osinit() { ncpu = getproccount()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 25.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
} } /******** runtime ********/ if !base.Flag.Cfg.Instrumenting { add("runtime", "slicebytetostringtmp", func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value { // Compiler frontend optimizations emit OBYTES2STRTMP nodes // for the backend instead of slicebytetostringtmp calls // when not instrumenting. return s.newValue2(ssa.OpStringMake, n.Type(), args[0], args[1]) },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)