https://github.com/alecthomas/binary
General purpose binary encoder/decoder
https://github.com/alecthomas/binary
Last synced: 12 months ago
JSON representation
General purpose binary encoder/decoder
- Host: GitHub
- URL: https://github.com/alecthomas/binary
- Owner: alecthomas
- License: mit
- Created: 2014-04-29T21:02:51.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T07:16:37.000Z (over 2 years ago)
- Last Synced: 2025-03-31T22:01:58.256Z (over 1 year ago)
- Language: Go
- Size: 16.6 KB
- Stars: 48
- Watchers: 5
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.