summaryrefslogtreecommitdiff
path: root/src/pkg/gob/decode.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1275
2011-09-13Imported Upstream version 60Ondřej Surý1-1275/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-22/+22
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-1/+1
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-56/+70
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-92/+113
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-126/+284
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-3/+47
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-38/+42
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-216/+272
2010-06-28gob: add DecodeValue and EncodeValueRob Pike1-4/+4
R=rsc CC=golang-dev http://codereview.appspot.com/1698045
2010-06-28gob: allow transmission of things other than structs at the top level.Rob Pike1-42/+71
also fix a bug handling nil maps: before, would needlessly send empty map R=rsc CC=golang-dev http://codereview.appspot.com/1739043
2010-06-24gob: add support for complex numbersRob Pike1-42/+84
R=rsc CC=golang-dev http://codereview.appspot.com/1708048
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox1-3/+7
gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-24/+23
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-05-06gob: add test for indirect maps, slices, arrays.Rob Pike1-3/+0
fix a bug in the handling of indirect maps. R=rsc CC=golang-dev http://codereview.appspot.com/1132042
2010-05-05gob: add support for maps.Rob Pike1-25/+123
Because maps are mostly a hidden type, they must be implemented using reflection values and will not be as efficient as arrays and slices. R=rsc CC=golang-dev http://codereview.appspot.com/1127041
2010-03-30single argument panicRuss Cox1-3/+3
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer1-15/+15
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2009-12-30improve some type switches now that multiple types per case are supported.Rob Pike1-25/+3
R=rsc CC=golang-dev http://codereview.appspot.com/181089
2009-12-29remove all references to gobType() from the decoder.Rob Pike1-14/+20
Fixes issue 470. R=rsc CC=golang-dev http://codereview.appspot.com/183074
2009-12-151) Change default gofmt default settings forRobert Griesemer1-224/+224
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-12-07runtime: introduce unsafe.New and unsafe.NewArrayRuss Cox1-15/+11
to provide functionality previously hacked in to reflect and gob. R=r http://codereview.appspot.com/165076
2009-12-03The String() method requires global state that makes it not work outside of ↵Rob Pike1-2/+2
this package, so make it a local method (_String()). R=rsc CC=golang-dev http://codereview.appspot.com/165049
2009-12-01more gob bugsRob Pike1-7/+18
1) need to send slice and array types (was only sending element types) 2) compatibleType needs to use decoder's type map R=rsc CC=golang-dev http://codereview.appspot.com/164062
2009-11-16Rework gobs to fix bad bug related to sharing of id's between encoder and ↵Rob Pike1-42/+38
decoder side. Fix is to move all decoder state into the decoder object. Fixes issue 215. R=rsc CC=golang-dev http://codereview.appspot.com/155077
2009-11-09 - replaced gofmt expression formatting algorithm withRobert Griesemer1-4/+4
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-95/+95
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-1/+3
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt-ify gobRobert Griesemer1-4/+2
(the one-line struct types used in composite literals will become one line again in another cleanup round; don't worry about them now) R=r http://go/go-review/1016056
2009-10-11better code for allocation through indirectionRob Pike1-8/+6
R=rsc DELTA=11 (3 added, 5 deleted, 3 changed) OCL=35583 CL=35583
2009-10-11fix bugs in gob.Rob Pike1-13/+13
1) didn't handle attempts to encode non-structs properly. 2) if there were multiple indirections involving allocation, didn't allocate the intermediate cells. tests added. R=rsc DELTA=82 (65 added, 5 deleted, 12 changed) OCL=35582 CL=35582
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox1-73/+74
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
2009-09-15more "declared and not used".Russ Cox1-1/+1
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-08-12delete forward type declarationsRuss Cox1-1/+0
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
2009-08-12convert gob to whole-package compilation.Russ Cox1-5/+1
had to reorder some init code. R=r DELTA=136 (15 added, 110 deleted, 11 changed) OCL=33071 CL=33102
2009-07-29handle some error conditions involving bad data.Rob Pike1-0/+5
R=rsc DELTA=32 (24 added, 1 deleted, 7 changed) OCL=32461 CL=32463
2009-07-28change the encoding of uints to simplify overflow checking and to make themRob Pike1-28/+54
easier and faster to read. they are now either a one-byte value or a n-byte value preceded by a byte holding -n. R=rsc DELTA=150 (45 added, 7 deleted, 98 changed) OCL=32381 CL=32387
2009-07-28bug177: anonymous struct fields in reflectRuss Cox1-1/+1
(reported by iant) R=r DELTA=50 (32 added, 12 deleted, 6 changed) OCL=32263 CL=32385
2009-07-28- clean up code creating keys for type mapsRob Pike1-79/+128
- derive int, uint, float, uintptr decoders based on their size - add overflow checks in decode R=rsc DELTA=407 (281 added, 44 deleted, 82 changed) OCL=32286 CL=32290
2009-07-27fix build - broke with uint32 -> int change in reflect SliceHeaderRuss Cox1-2/+2
TBR=r OCL=32225 CL=32225
2009-07-27clean up for public use: make some stuff private, add doc comments.Rob Pike1-21/+21
R=rsc DELTA=298 (202 added, 0 deleted, 96 changed) OCL=32006 CL=32224
2009-07-17change reflect.Type.Name() into two functions: Name() and PkgPath() for ease ↵Rob Pike1-1/+1
of use. R=rsc DELTA=31 (8 added, 2 deleted, 21 changed) OCL=31778 CL=31792
2009-07-17ignore missing structsRob Pike1-20/+75
R=rsc DELTA=113 (74 added, 14 deleted, 25 changed) OCL=31776 CL=31776
2009-07-16clean up the code, flow errors out to decoder.Rob Pike1-35/+61
R=rsc DELTA=99 (32 added, 22 deleted, 45 changed) OCL=31759 CL=31759
2009-07-16- allow wire type and receive type to differ.Rob Pike1-48/+207
- still TODO: ignoring struct fields. R=rsc DELTA=309 (240 added, 2 deleted, 67 changed) OCL=31750 CL=31750
2009-07-15make the low-level encoder and decoder private and have them access ↵Rob Pike1-67/+85
byte.Buffers rather than io.Readers and io.Writers. change the Encoder/Decoder protocol so that each message is preceded by its length in bytes. R=rsc DELTA=468 (119 added, 23 deleted, 326 changed) OCL=31700 CL=31702
2009-07-09store ids rather than Types in the structs so they can be encoded.Rob Pike1-11/+28
change Type to gobType. fix some bugs around recursive structures. lots of cleanup. add the first cut at a type encoder. R=rsc DELTA=400 (287 added, 11 deleted, 102 changed) OCL=31401 CL=31406
2009-07-07bug fix: encOpFor etc. need to indirectRob Pike1-9/+9
R=rsc DELTA=28 (7 added, 7 deleted, 14 changed) OCL=31312 CL=31322
2009-07-07gob: use new reflectRuss Cox1-61/+52
R=r DELTA=242 (68 added, 69 deleted, 105 changed) OCL=31239 CL=31289