]> Cypherpunks repositories - gostls13.git/commit
big: implemented custom Gob(En/De)coder for Int type
authorRobert Griesemer <gri@golang.org>
Wed, 9 Mar 2011 01:27:44 +0000 (17:27 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 9 Mar 2011 01:27:44 +0000 (17:27 -0800)
commit758d05551dbb69491ca255511b56c35e7e72e24b
tree52e03f3b5bd9a0e9feaed8960505652ec74bb2a1
parent8138654aa84a5a0e610ab93a0706e703b9b61e18
big: implemented custom Gob(En/De)coder for Int type

- factored implementation of Int.Bytes, Int.SetBytes
  and replaced existing code with much simpler cores
- use the shared bytes, setBytes routines for Gob
  (en/de)coding

Fixes #1496.

R=r, eds
CC=golang-dev
https://golang.org/cl/4249063
src/pkg/big/int.go
src/pkg/big/int_test.go
src/pkg/big/nat.go