Documentation ¶
Overview ¶
Package sgob wraps the gob package to stream encoding of lists and maps of objects.
By default, the gob package encodes a large slice of map into a buffer and then makes a single Write call to the underlying buffer. This has the disadvantage that large objects have to be encoded entirely in memory before being written to the stream.
This package works around this restriction by allowing top-level slices and maps to be encoded piece by piece, meaning that each object is first encoded in memory and then written to the stream. A disadvantage is that the corresponding decode also has to be performed using this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeValue ¶
DecodeValue is like Decode, but takes a relect.Value.
Types ¶
This section is empty.