]> Cypherpunks repositories - gostls13.git/commit
go/token: document deserialization property
authorRobert Griesemer <gri@golang.org>
Fri, 7 Oct 2011 00:37:59 +0000 (17:37 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Oct 2011 00:37:59 +0000 (17:37 -0700)
commit5782ea9646bf14b619a0c29140df3a4aa9e89e3e
treea83393d1ffa8d8e2c7ff5eeb513b1721e9cc5d48
parentec9ea9a5cbfa0749d2461e44532ce2eafaf20334
go/token: document deserialization property

FileSet deserialization (Read) uses its own instance of a gob decoder.
If the FileSet data may be followed by other data on the reader, Read
may consume too much data that is lost unless the reader implements
ReadByte.

Also: Minor internal refactoring for symmetry.

R=r
CC=golang-dev
https://golang.org/cl/5233041
src/pkg/go/token/serialize.go