1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:44:48 -07:00
go/src/bytes
cuiweixie 2a627afe13 bytes: simplify code using unsafe.SliceData
Updates #54854

Change-Id: I9c14f9fa595f73eae44eb714abc5d486915893c1
Reviewed-on: https://go-review.googlesource.com/c/go/+/428155
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2022-09-07 01:33:52 +00:00
..
boundary_test.go bytes: test for page boundary crosses on sep of Index 2021-11-02 17:31:50 +00:00
buffer_test.go bytes: rely on runtime.growslice for growing 2022-03-10 16:24:16 +00:00
buffer.go bytes: rely on utf8.AppendRune 2022-08-23 20:26:47 +00:00
bytes_test.go bytes: simplify code using unsafe.SliceData 2022-09-07 01:33:52 +00:00
bytes.go bytes: rely on utf8.AppendRune 2022-08-23 20:26:47 +00:00
compare_test.go
example_test.go bytes: add example with (*Buffer).Cap, (*Buffer).Read, (*Buffer).ReadByte 2021-11-05 21:26:54 +00:00
export_test.go
reader_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
reader.go bytes: document that Reader.Reset affects the result of Size 2022-07-26 14:20:34 +00:00