...

Package endian

Overview ▾

Package endian detects the platform specific byte endianness. On initialization the package checks if the system is using big or little endian byte ordering.

Index ▾

Package files

doc.go endianness.go

Variables

var (
    // ByteOrder is the current system byte order.
    ByteOrder binary.ByteOrder
)

func IsBig

func IsBig() bool

IsBig checks if the machine uses the Big Endian byte order.

func IsLittle

func IsLittle() bool

IsLittle checks if the machine uses Little Endian byte ordering.