File: README.md

package info (click to toggle)
golang-github-alecthomas-binary 0.0~git20171101.6e8df1b-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 92 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
# Compact binary encoding for Go

The Go standard library package
[encoding/binary](http://golang.org/pkg/encoding/binary/) provides
encoding/decoding of *fixed-size* Go values or slices of same. This package
extends support to arbitrary, variable-sized values by prefixing these values
with their varint-encoded size, recursively. It expects the encoded type and
decoded type to match exactly and makes no attempt to reconcile or check for
any differences.