summaryrefslogtreecommitdiff
path: root/src/lib/io
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike8-1077/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-08add new function io.ReadAllRuss Cox1-7/+9
R=gri DELTA=14 (6 added, 4 deleted, 4 changed) OCL=30072 CL=30074
2009-06-06Publish types PipeReader and PipeWriterRuss Cox2-81/+138
to expose new CloseWithError methods. R=r DELTA=161 (72 added, 15 deleted, 74 changed) OCL=29980 CL=30003
2009-06-05rebuilt Makefiles for CL 29923Russ Cox1-14/+6
R=r DELTA=761 (1 added, 433 deleted, 327 changed) OCL=29927 CL=29966
2009-06-04use the new bytes packageRob Pike1-3/+2
R=rsc DELTA=61 (8 added, 31 deleted, 22 changed) OCL=29897 CL=29899
2009-06-01io.ReadFileRobert Griesemer3-1/+66
R=r,rsc DELTA=64 (63 added, 0 deleted, 1 changed) OCL=29702 CL=29702
2009-05-22Automated g4 rollback of changelist 29302.Russ Cox2-73/+27
*** Reason for rollback *** too many files included *** Original change description *** simplifying grammar: delete LBASETYPE and LACONST R=ken OCL=29303 CL=29303
2009-05-22simplifying grammar: delete LBASETYPE and LACONSTRuss Cox2-27/+73
R=ken OCL=29300 CL=29302
2009-05-19Crypto modes: CBC, CFB, ECB.Russ Cox1-3/+14
Not ready to link into build yet. Delta says 1272 lines but only 474 if you subtract the test files, which are mostly data. R=r DELTA=1252 (1249 added, 0 deleted, 3 changed) OCL=29013 CL=29037
2009-05-18add io.ByteReader.Russ Cox2-1/+31
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-18move ShortWrite error into io so that other packages can use it.Russ Cox1-1/+8
R=r DELTA=15 (7 added, 1 deleted, 7 changed) OCL=28996 CL=28996
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 Griesemer2-7/+17
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 Griesemer2-5/+22
R=r DELTA=22 (17 added, 0 deleted, 5 changed) OCL=28781 CL=28815
2009-05-08throw away os._Error.Russ Cox1-1/+4
make some error types in a few packages R=r DELTA=110 (25 added, 46 deleted, 39 changed) OCL=28382 CL=28561
2009-05-08Name change to improve embeddability:Rob Pike3-42/+42
io.Read->io.Reader io.Write,Close,etc.->io.Writer,Closer etc. R=rsc DELTA=190 (0 added, 0 deleted, 190 changed) OCL=28525 CL=28535
2009-05-05better io.ByteBuffer implementation:Robert Griesemer2-59/+191
- 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-19Readn is a silly name when there's no n. Change to FullRead.Rob Pike1-6/+6
R=gri DELTA=15 (0 added, 0 deleted, 15 changed) OCL=27619 CL=27619
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike3-19/+19
*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-16Convert go tree to hierarchical pkg directory:Russ Cox1-9/+13
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-16regenerate Makefiles.Russ Cox1-8/+17
fix bug in RPC.go (import "RPC" not "rpc.pb") R=r DELTA=483 (261 added, 64 deleted, 158 changed) OCL=27547 CL=27549
2009-04-15code changes for array conversion.Russ Cox1-6/+6
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
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-04-03fix both of anton's bugs:Russ Cox1-1/+1
* make([100]int) was being compiled to make([]int), kind of. * []this = [100]that was working for any this, that. turned up a typo in pipe_test.go R=ken OCL=27081 CL=27081
2009-03-06delete vestigial references to package syscallRob Pike1-1/+0
R=rsc DELTA=8 (0 added, 5 deleted, 3 changed) OCL=25857 CL=25861
2009-03-06document ioRob Pike3-13/+39
R=rsc DELTA=44 (30 added, 4 deleted, 10 changed) OCL=25819 CL=25835
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox3-4/+4
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-03-02fix names: s/fd/r/Russ Cox1-9/+9
R=r DELTA=9 (0 added, 0 deleted, 9 changed) OCL=25593 CL=25593
2009-02-16comment nitRuss Cox1-2/+0
R=r DELTA=2 (0 added, 2 deleted, 0 changed) OCL=25081 CL=25084
2009-02-16use embedded interface typesRuss Cox1-9/+9
R=r DELTA=205 (1 added, 157 deleted, 47 changed) OCL=25071 CL=25073
2009-02-16io.PipeRuss Cox4-11/+420
assorted underscore cleanup R=r DELTA=488 (410 added, 3 deleted, 75 changed) OCL=25070 CL=25070
2009-02-13convert composite literals from { } to ( ).Russ Cox1-1/+1
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-06portable stat for osRob Pike1-18/+12
add name to os.FD clean up some interfaces R=rsc DELTA=318 (231 added, 44 deleted, 43 changed) OCL=24624 CL=24627
2009-02-03bufio:Russ Cox1-0/+4
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
2009-01-20delete exportRuss Cox2-14/+13
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-16casify miscRuss Cox1-6/+6
R=r DELTA=247 (20 added, 50 deleted, 177 changed) OCL=22951 CL=22955
2009-01-06new new & makeRuss Cox2-7/+7
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 Cox2-25/+17
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-12-10StringBytes help routine, common functionality put into package io for sharing.Rob Pike1-0/+10
R=rsc DELTA=10 (10 added, 0 deleted, 0 changed) OCL=20928 CL=20931
2008-11-25make a (rudimentary) ByteBuffer and put it in package "io".Rob Pike3-0/+292
fix up protocol buffers to use it. R=rsc DELTA=1232 (612 added, 572 deleted, 48 changed) OCL=19964 CL=19981