Versions in this module Expand all Collapse all v0 v0.10.0 Jul 8, 2022 Changes in this version + const APIVersion + func BytesStripRight(s []byte, pad byte) []byte + func BytesTerminate(s []byte, term byte, includeTerm bool) []byte + func BytesToStr(in []byte, decoder *encoding.Decoder) (string, error) + func ProcessRotateLeft(data []byte, amount int) []byte + func ProcessRotateRight(data []byte, amount int) []byte + func ProcessXOR(data []byte, key []byte) []byte + func ProcessZlib(in []byte) ([]byte, error) + func StringReverse(s string) string + type EndOfStreamError struct + func (EndOfStreamError) Error() string + type Stream struct + func NewStream(r io.ReadSeeker) *Stream + func (k *Stream) AlignToByte() + func (k *Stream) EOF() (bool, error) + func (k *Stream) Pos() (int64, error) + func (k *Stream) ReadBitsArray(n uint) error + func (k *Stream) ReadBitsInt(n uint8) (res uint64, err error) + func (k *Stream) ReadBitsIntBe(n int) (res uint64, err error) + func (k *Stream) ReadBitsIntLe(n int) (res uint64, err error) + func (k *Stream) ReadBytes(n int) (b []byte, err error) + func (k *Stream) ReadBytesFull() ([]byte, error) + func (k *Stream) ReadBytesPadTerm(size int, term, pad byte, includeTerm bool) ([]byte, error) + func (k *Stream) ReadBytesTerm(term byte, includeTerm, consumeTerm, eosError bool) ([]byte, error) + func (k *Stream) ReadF4be() (v float32, err error) + func (k *Stream) ReadF4le() (v float32, err error) + func (k *Stream) ReadF8be() (v float64, err error) + func (k *Stream) ReadF8le() (v float64, err error) + func (k *Stream) ReadS1() (v int8, err error) + func (k *Stream) ReadS2be() (v int16, err error) + func (k *Stream) ReadS2le() (v int16, err error) + func (k *Stream) ReadS4be() (v int32, err error) + func (k *Stream) ReadS4le() (v int32, err error) + func (k *Stream) ReadS8be() (v int64, err error) + func (k *Stream) ReadS8le() (v int64, err error) + func (k *Stream) ReadStrByteLimit(limit int, encoding string) (string, error) + func (k *Stream) ReadStrEOS(encoding string) (string, error) + func (k *Stream) ReadU1() (v uint8, err error) + func (k *Stream) ReadU2be() (v uint16, err error) + func (k *Stream) ReadU2le() (v uint16, err error) + func (k *Stream) ReadU4be() (v uint32, err error) + func (k *Stream) ReadU4le() (v uint32, err error) + func (k *Stream) ReadU8be() (v uint64, err error) + func (k *Stream) ReadU8le() (v uint64, err error) + func (k *Stream) Size() (int64, error) + type UndecidedEndiannessError struct + func (UndecidedEndiannessError) Error() string + type ValidationExprError struct + func NewValidationExprError(actual interface{}, io *Stream, srcPath string) ValidationExprError + func (e ValidationExprError) Actual() interface{} + func (e ValidationExprError) Error() string + func (l ValidationExprError) Io() *Stream + func (l ValidationExprError) SrcPath() string + type ValidationFailedError interface + Actual func() interface{} + Io func() *Stream + SrcPath func() string + type ValidationGreaterThanError struct + func NewValidationGreaterThanError(max interface{}, actual interface{}, io *Stream, srcPath string) ValidationGreaterThanError + func (e ValidationGreaterThanError) Actual() interface{} + func (e ValidationGreaterThanError) Error() string + func (e ValidationGreaterThanError) Max() interface{} + func (l ValidationGreaterThanError) Io() *Stream + func (l ValidationGreaterThanError) SrcPath() string + type ValidationLessThanError struct + func NewValidationLessThanError(min interface{}, actual interface{}, io *Stream, srcPath string) ValidationLessThanError + func (e ValidationLessThanError) Actual() interface{} + func (e ValidationLessThanError) Error() string + func (e ValidationLessThanError) Min() interface{} + func (l ValidationLessThanError) Io() *Stream + func (l ValidationLessThanError) SrcPath() string + type ValidationNotAnyOfError struct + func NewValidationNotAnyOfError(actual interface{}, io *Stream, srcPath string) ValidationNotAnyOfError + func (e ValidationNotAnyOfError) Actual() interface{} + func (e ValidationNotAnyOfError) Error() string + func (l ValidationNotAnyOfError) Io() *Stream + func (l ValidationNotAnyOfError) SrcPath() string + type ValidationNotEqualError struct + func NewValidationNotEqualError(expected interface{}, actual interface{}, io *Stream, srcPath string) ValidationNotEqualError + func (e ValidationNotEqualError) Actual() interface{} + func (e ValidationNotEqualError) Error() string + func (e ValidationNotEqualError) Expected() interface{} + func (l ValidationNotEqualError) Io() *Stream + func (l ValidationNotEqualError) SrcPath() string + type Writer struct + func NewWriter(w io.Writer) *Writer + func (k *Writer) WriteBytes(b []byte) error + func (k *Writer) WriteF4be(v float32) error + func (k *Writer) WriteF4le(v float32) error + func (k *Writer) WriteF8be(v float64) error + func (k *Writer) WriteF8le(v float64) error + func (k *Writer) WriteS1(v int8) error + func (k *Writer) WriteS2be(v int16) error + func (k *Writer) WriteS2le(v int16) error + func (k *Writer) WriteS4be(v int32) error + func (k *Writer) WriteS4le(v int32) error + func (k *Writer) WriteS8be(v int64) error + func (k *Writer) WriteS8le(v int64) error + func (k *Writer) WriteU1(v uint8) error + func (k *Writer) WriteU2be(v uint16) error + func (k *Writer) WriteU2le(v uint16) error + func (k *Writer) WriteU4be(v uint32) error + func (k *Writer) WriteU4le(v uint32) error + func (k *Writer) WriteU8be(v uint64) error + func (k *Writer) WriteU8le(v uint64) error