Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/bindec


https://github.com/icholy/bindec

Last synced: 1 day ago
JSON representation

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))
```