Versions in this module Expand all Collapse all v0 v0.0.2 Nov 30, 2019 Changes in this version + var TooShort = errors.New("byte slice is too short") v0.0.1 Oct 20, 2019 Changes in this version + var BigEndian = binary.BigEndian + var LittleEndian = binary.LittleEndian + func AppendBool(b []byte, on bool) []byte + func AppendBytes(b, bytes []byte) []byte + func AppendDuration(b []byte, d time.Duration) []byte + func AppendFloat32(b []byte, f float32) []byte + func AppendFloat64(b []byte, f float64) []byte + func AppendInt(b []byte, i int) []byte + func AppendInt16(b []byte, i int16) []byte + func AppendInt32(b []byte, i int32) []byte + func AppendInt64(b []byte, i int64) []byte + func AppendPtr(b []byte, o Marshaler) []byte + func AppendString(b []byte, str string) []byte + func AppendTime(b []byte, t time.Time) []byte + func AppendUint16(b []byte, i uint16) []byte + func AppendUint32(b []byte, i uint32) []byte + func AppendUint64(b []byte, i uint64) []byte + func Bits(bits ...bool) int64 + func GetBytes(b []byte) (data, remaining []byte) + func GetNBytes(b []byte, n int) (data, remaining []byte) + func ScanBool(b []byte) ([]byte, bool) + func ScanBytes(b []byte) ([]byte, []byte) + func ScanDuration(b []byte) ([]byte, time.Duration) + func ScanFloat32(b []byte) ([]byte, float32) + func ScanFloat64(b []byte) ([]byte, float64) + func ScanInt(b []byte) ([]byte, int) + func ScanInt16(b []byte) ([]byte, int16) + func ScanInt32(b []byte) ([]byte, int32) + func ScanInt64(b []byte) ([]byte, int64) + func ScanPtr(b []byte, ctor func() Unmarshaler) []byte + func ScanString(b []byte) ([]byte, string) + func ScanTime(b []byte) ([]byte, time.Time) + func ScanUint16(b []byte) ([]byte, uint16) + func ScanUint32(b []byte) ([]byte, uint32) + func ScanUint64(b []byte) ([]byte, uint64) + type Marshaler interface + MarshalAppend func([]byte) []byte + type Unmarshaler interface + Unmarshal func([]byte) ([]byte, error)