summaryrefslogtreecommitdiff
path: root/src/pkg/gob/decode.go
AgeCommit message (Collapse)AuthorFilesLines
2009-07-06catch corruption - avoid crashRob Pike1-0/+4
R=rsc DELTA=4 (4 added, 0 deleted, 0 changed) OCL=31192 CL=31198
2009-07-02slicesRob Pike1-12/+41
R=rsc DELTA=59 (44 added, 13 deleted, 2 changed) OCL=31105 CL=31105
2009-07-02indirection on array elements.Rob Pike1-11/+11
R=rsc DELTA=57 (34 added, 10 deleted, 13 changed) OCL=31098 CL=31101
2009-07-02arrays, not slices, and only with non-pointer elements.Rob Pike1-10/+48
(actually slices encode but do not decode yet) R=rsc DELTA=221 (82 added, 65 deleted, 74 changed) OCL=31095 CL=31095
2009-07-02encode and decode for nested structures.Rob Pike1-30/+38
fix a bug in delta encoding: only update the delta-base if something is marshaled. R=rsc DELTA=154 (94 added, 56 deleted, 4 changed) OCL=31069 CL=31071
2009-07-02encoders and decoders for string, []uint8Rob Pike1-4/+46
R=rsc DELTA=165 (145 added, 6 deleted, 14 changed) OCL=31051 CL=31056
2009-07-02simplify decoders. error checking is done higher up.Rob Pike1-56/+14
if there is an error, we will write one more value into the struct but in return we do fewer tests in the decode. R=rsc DELTA=56 (0 added, 42 deleted, 14 changed) OCL=31041 CL=31044
2009-07-02fix bug in decoders: got indirection wrong when allocation not required.Rob Pike1-14/+14
write indirection test. next step: cut down scalar tests since indirection is centralized. R=rsc DELTA=114 (83 added, 3 deleted, 28 changed) OCL=31020 CL=31037
2009-07-01move dereference code out of the ops and into the interpreter loops.Rob Pike1-87/+41
R=rsc DELTA=574 (40 added, 149 deleted, 385 changed) OCL=31017 CL=31019
2009-07-01Encode and decode engines for gobs.Rob Pike1-0/+114
R=rsc DELTA=468 (292 added, 18 deleted, 158 changed) OCL=31008 CL=31012
2009-06-30scalar decodersRob Pike1-0/+281
R=rsc DELTA=897 (728 added, 14 deleted, 155 changed) OCL=30955 CL=30955
2009-06-30pass the state to the encoders and decoders so error handling can be ↵Rob Pike1-14/+28
centralized. R=rsc DELTA=172 (40 added, 6 deleted, 126 changed) OCL=30941 CL=30944
2009-06-29integer encode/decodeRob Pike1-0/+40
R=rsc DELTA=185 (175 added, 10 deleted, 0 changed) OCL=30863 CL=30871