Documentation
¶
Overview ¶
Package binary provides helpers for encoding binary data from a spec file very loosely based on kaitai; see https://doc.kaitai.io. Only flat primitive types are supported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder is a binary object decoder
func NewDecoder ¶
NewDecoder returns a new decoder with the spec
type Meta ¶
type Meta struct {
ID string `yaml:"id"`
Endian string `yaml:"endian"`
Encoding string `yaml:"encoding"`
}
Meta provides meta-information for the spec
Click to show internal directories.
Click to hide internal directories.