Skip to content
This repository was archived by the owner on Oct 28, 2026. It is now read-only.
ChimeHQPublic archive

About

Go binary data reader

Topics

Resources

Code of conduct

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

binarycursor

This is a small library that implements a stateful cursor which can read binary data of various types. Handy for parsing binary formats.

usage

reader := bytes.NewReader(data)
c := NewBinaryCursor(reader)

// basic types
_, err := c.ReadUint8()
_, err := c.ReadUint16()
_, err := c.ReadUint32()
_, err := c.ReadUint64()

// strings
_, err := c.ReadNullTerminatedUTF8String()

// LEB128
_, err := c.ReadUleb128()
_, err := c.ReadSleb128()

Suggestions or Feedback

We'd love to hear from you! Get in touch via an issue or pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

About

Go binary data reader

Topics

Resources

Code of conduct

Stars

3 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages