]> Cypherpunks repositories - gostls13.git/commit
change the encoding of uints to simplify overflow checking and to make them
authorRob Pike <r@golang.org>
Wed, 29 Jul 2009 00:20:19 +0000 (17:20 -0700)
committerRob Pike <r@golang.org>
Wed, 29 Jul 2009 00:20:19 +0000 (17:20 -0700)
commitb85147cd70b2e4d3efe33c2cb9ea65bed1af99e8
treee28e2153d863e5f8d66e6f67ff3d6ea183686f79
parent189153ed131e4fa106ff945754509a043f8fcb93
change the encoding of uints to simplify overflow checking and to make them
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
src/pkg/gob/Makefile
src/pkg/gob/codec_test.go
src/pkg/gob/decode.go
src/pkg/gob/decoder.go
src/pkg/gob/encode.go
src/pkg/gob/encoder.go
src/pkg/gob/encoder_test.go