1
0
mirror of https://github.com/golang/go synced 2024-10-05 12:21:22 -06:00
go/src/pkg/io
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
..
ioutil Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation. 2009-12-03 12:56:16 -08:00
io_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
io.go Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without buffer allocation. 2009-12-03 12:56:16 -08:00
Makefile move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package. 2009-12-02 22:02:14 -08:00
pipe_test.go - replaced gofmt expression formatting algorithm with 2009-11-09 21:23:52 -08:00
pipe.go gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkg 2009-11-20 11:45:05 -08:00