]> Cypherpunks repositories - gostls13.git/commit
When the buffer is empty, reset b.off to the beginning of the buffer
authorRob Pike <r@golang.org>
Mon, 14 Dec 2009 02:13:01 +0000 (13:13 +1100)
committerRob Pike <r@golang.org>
Mon, 14 Dec 2009 02:13:01 +0000 (13:13 +1100)
commitd14c81337741b6f34992f8d179a874156b4d618f
tree9205d14f0d847df70eb7f8362c1686fdb65dc171
parent58578905bad8c1c4c2bfec974964567d1da0044f
When the buffer is empty, reset b.off to the beginning of the buffer
to avoid growing unnecessarily.

R=rsc
CC=golang-dev
https://golang.org/cl/176071
src/pkg/bytes/buffer.go