Documentation ¶
Index ¶
- func CalcDataLength(data Data) (uint16, error)
- func ReadByte(r Reader) byte
- func ReadBytes(len uint16, r Reader) []byte
- func ReadPadding(length int, r Reader)
- func ReadUInt16BE(r Reader) uint16
- func ReadUInt16LE(r Reader) uint16
- func ReadUInt32BE(r Reader) uint32
- func ReadUInt32LE(r Reader) uint32
- func ReadUInt8(r Reader) uint8
- func WriteByte(data byte, w Writer)
- func WritePadding(length int, w Writer)
- func WriteUInt16BE(data uint16, w Writer)
- func WriteUInt16LE(data uint16, w Writer)
- func WriteUInt32BE(data uint32, w Writer)
- func WriteUInt32LE(data uint32, w Writer)
- func WriteUInt8(data uint8, w Writer)
- type Component
- type ComponentOption
- type Data
- type IoReader
- type LimitedReader
- type Readable
- type Reader
- type Writable
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcDataLength ¶
func ReadPadding ¶
func ReadUInt16BE ¶
func ReadUInt16LE ¶
func ReadUInt32BE ¶
func ReadUInt32LE ¶
func WritePadding ¶
func WriteUInt16BE ¶
func WriteUInt16LE ¶
func WriteUInt32BE ¶
func WriteUInt32LE ¶
func WriteUInt8 ¶
Types ¶
type Component ¶
type Component struct {
Opt interface{}
}
func NewComponent ¶
func NewComponent(opt interface{}) *Component
type ComponentOption ¶
type ComponentOption struct {
// contains filtered or unexported fields
}
func NewComponentOption ¶
func NewComponentOption(readLength uint16, constant bool, optional bool) *ComponentOption
type LimitedReader ¶
type LimitedReader struct {
// contains filtered or unexported fields
}
type Reader ¶
func NewLimitedReader ¶
Click to show internal directories.
Click to hide internal directories.