https://github.com/icholy/bindec
https://github.com/icholy/bindec
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/icholy/bindec
- Owner: icholy
- License: mit
- Created: 2020-11-19T22:02:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T16:45:30.000Z (over 4 years ago)
- Last Synced: 2025-01-30T03:13:17.384Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bindec
> Helper type that wraps the `encoding/binary` package
``` go
dec := bindec.NewDecoder(reader, binary.LittleEndian)
size, _ := dec.Int16(nil)
header, _ := dec.Bytes(int(size))
```