aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2021-08-04 00:57:07 -0700
committerJoe Tsai <joetsai@digital-static.net>2021-09-11 04:44:12 +0000
commita50225a0dc1e83449a76b80b2fbed77af516483c (patch)
treeb4aba706a29947b7d94ab1cf5b50668902f3a728 /src/runtime
parentcf2fe5d6f12f075f265ba067869fc5f0e3b23ff0 (diff)
downloadgo-a50225a0dc1e83449a76b80b2fbed77af516483c.tar.xz
bufio: make Reader.Reset and Writer.Reset work on the zero value
For batch allocation reasons, it would be useful to nest a bufio.Reader or bufio.Writer in a struct as a value, rather than a pointer. When the Reset method is called, have it use the default buffer size if the buffer is nil. Fixes #45374 Change-Id: I80df18a13575431428a42ed150a1579de1282637 Reviewed-on: https://go-review.googlesource.com/c/go/+/345570 Trust: Joe Tsai <joetsai@digital-static.net> Run-TryBot: Joe Tsai <joetsai@digital-static.net> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions