1
0
mirror of https://github.com/golang/go synced 2024-10-04 14:41:25 -06:00
go/src/pkg/bytes
Rob Pike bc3e34759c Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation.
Use them in Copy and Copyn.
Speed up ReadFile by using ReadFrom and avoiding Copy altogether (a minor win).

R=rsc, gri
CC=golang-dev
https://golang.org/cl/166041
2009-12-03 12:56:16 -08:00
..
buffer_test.go Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation. 2009-12-03 12:56:16 -08:00
buffer.go Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation. 2009-12-03 12:56:16 -08:00
bytes_test.go Runes: turn string into []int 2009-12-02 20:47:38 -08:00
bytes.go Runes: turn string into []int 2009-12-02 20:47:38 -08:00
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00