Documentation ¶
Overview ¶
FIXME this is redundant: "binary".BigEndian provides the same functionality (mostly). See if we can replace or synergize.
FIXME consider using '|' instead of '+' to add parts of uint values.
TODO consider migration to package `twos` or smth for Two's Complement, both BigEndian and LittleEndian.
Index ¶
- func FromUint16(value uint16) [2]byte
- func FromUint32(value uint32) [4]byte
- func FromUint64(value uint64) [8]byte
- func MustReadUint16(in io.Reader) uint16
- func MustReadUint32(in io.Reader) uint32
- func MustReadUint64(in io.Reader) uint64
- func MustReadUint8(in io.Reader) uint8
- func ReadUint16(in io.Reader) (uint16, error)
- func ReadUint32(in io.Reader) (uint32, error)
- func ReadUint64(in io.Reader) (uint64, error)
- func ReadUint8(in io.Reader) (uint8, error)
- func ToUint16(b0, b1 byte) uint16
- func ToUint32(b0, b1, b2, b3 byte) uint32
- func ToUint64(b0, b1, b2, b3, b4, b5, b6, b7 byte) uint64
- func WriteUint16(out io.Writer, value uint16) error
- func WriteUint32(out io.Writer, value uint32) error
- func WriteUint64(out io.Writer, value uint64) error
- func WriteUint8(out io.Writer, value uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUint16 ¶
func FromUint32 ¶
func FromUint64 ¶
func MustReadUint16 ¶
func MustReadUint32 ¶
func MustReadUint64 ¶
func MustReadUint8 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.