diff options
author | Joe Tsai <joetsai@digital-static.net> | 2024-04-23 15:42:22 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-24 13:36:51 +0000 |
commit | 62dfa43101ce0abe5c919b4c996a9ba157e6a5e0 (patch) | |
tree | 9ad8440c6ef1cf71007cc509145ef7034f9e7dff /doc/next/6-stdlib/99-minor/net/63116.md | |
parent | fc6a5ea88c913cbeb9af432c1ec16b4c72f4b4ba (diff) | |
download | go-62dfa43101ce0abe5c919b4c996a9ba157e6a5e0.tar.gz go-62dfa43101ce0abe5c919b4c996a9ba157e6a5e0.zip |
bytes: add test to ensure shallow copy of NewBuffer does not allocate
At present, there is no API to reset the underlying []byte
of an existing Buffer struct, except to shallow copy
the entire Buffer struct.
Updates #67004
Change-Id: I08998f7a95ae5bde0897d86247d47f23cd784583
Reviewed-on: https://go-review.googlesource.com/c/go/+/581297
Auto-Submit: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Joedian Reid <joedian@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'doc/next/6-stdlib/99-minor/net/63116.md')
0 files changed, 0 insertions, 0 deletions