- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for bufferNotEscape (0.12 sec)
-
test/fixedbugs/issue7921.go
// license that can be found in the LICENSE file. package foo import "bytes" // In order to get desired results, we need a combination of // both escape analysis and inlining. func bufferNotEscape() string { // b itself does not escape, only its buf field will be // copied during String() call, but object "handle" itself // can be stack-allocated. var b bytes.Buffer b.WriteString("123")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 19:43:26 UTC 2023 - 2.2K bytes - Viewed (0)