summaryrefslogtreecommitdiff
path: root/src/lib/io/bytebuffer.go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike1-109/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-05-18add io.ByteReader.Russ Cox1-1/+5
add testing/iotest package. make bufio return error on short write. R=r DELTA=423 (208 added, 154 deleted, 61 changed) OCL=28997 CL=28999
2009-05-15Return error from WriteByte, to match bufio.Writer.Russ Cox1-3/+4
R=gri DELTA=4 (1 added, 0 deleted, 3 changed) OCL=28868 CL=28899
2009-05-14ByteBuffer.WriteByteRobert Griesemer1-0/+7
R=r DELTA=17 (10 added, 0 deleted, 7 changed) OCL=28860 CL=28862
2009-05-14fix Truncate comment:Russ Cox1-2/+1
* make a complete sentence. * eliminate reference to byte positions, which are not a concept exposed by the interface. R=gri DELTA=2 (0 added, 1 deleted, 1 changed) OCL=28838 CL=28838
2009-05-14ByteBuffer.Truncate(n int)Robert Griesemer1-1/+9
R=r DELTA=22 (17 added, 0 deleted, 5 changed) OCL=28781 CL=28815
2009-05-05better io.ByteBuffer implementation:Robert Griesemer1-59/+45
- more light-weight - better buffer management - added test cases R=r DELTA=227 (167 added, 35 deleted, 25 changed) OCL=28252 CL=28289
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike1-2/+2
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-06Extremely minor fix to ByteBuffer.Peter McKenzie1-1/+1
R=r APPROVED=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27123 CL=27130
2009-03-06document ioRob Pike1-7/+14
R=rsc DELTA=44 (30 added, 4 deleted, 10 changed) OCL=25819 CL=25835
2009-01-20delete exportRuss Cox1-3/+2
TBR=r OCL=23121 CL=23127
2009-01-20add a couple of helper methods to io.ByteBufferRob Pike1-0/+8
R=rsc DELTA=456 (9 added, 2 deleted, 445 changed) OCL=23107 CL=23107
2009-01-06new new & makeRuss Cox1-3/+3
R=r OCL=22166 CL=22166
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox1-1/+1
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-18convert *[] to [].Russ Cox1-16/+8
R=r OCL=21563 CL=21571
2008-12-16If ByteBuffer has never been used, b.buf is nil but Data() should still work.Rob Pike1-0/+8
Fix the bug using a (safe) shared global empty array. R=rsc DELTA=8 (8 added, 0 deleted, 0 changed) OCL=21303 CL=21303
2008-11-25make a (rudimentary) ByteBuffer and put it in package "io".Rob Pike1-0/+90
fix up protocol buffers to use it. R=rsc DELTA=1232 (612 added, 572 deleted, 48 changed) OCL=19964 CL=19981