1
0
mirror of https://github.com/golang/go synced 2024-10-05 06:21:24 -06:00
go/src/pkg/io/ioutil
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_test.go move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package. 2009-12-02 22:02:14 -08:00
ioutil.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