bigendian

package
v0.0.0-...-89d9e6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: GPL-3.0, LGPL-3.0 Imports: 2 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromUint16

func FromUint16(value uint16) [2]byte

func FromUint32

func FromUint32(value uint32) [4]byte

func FromUint64

func FromUint64(value uint64) [8]byte

func MustReadUint16

func MustReadUint16(in io.Reader) uint16

func MustReadUint32

func MustReadUint32(in io.Reader) uint32

func MustReadUint64

func MustReadUint64(in io.Reader) uint64

func MustReadUint8

func MustReadUint8(in io.Reader) uint8

func ReadUint16

func ReadUint16(in io.Reader) (uint16, error)

func ReadUint32

func ReadUint32(in io.Reader) (uint32, error)

func ReadUint64

func ReadUint64(in io.Reader) (uint64, error)

func ReadUint8

func ReadUint8(in io.Reader) (uint8, error)

func ToUint16

func ToUint16(b0, b1 byte) uint16

func ToUint32

func ToUint32(b0, b1, b2, b3 byte) uint32

func ToUint64

func ToUint64(b0, b1, b2, b3, b4, b5, b6, b7 byte) uint64

func WriteUint16

func WriteUint16(out io.Writer, value uint16) error

func WriteUint32

func WriteUint32(out io.Writer, value uint32) error

func WriteUint64

func WriteUint64(out io.Writer, value uint64) error

func WriteUint8

func WriteUint8(out io.Writer, value uint8) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL