endian

package
v0.0.0-...-90a1d6d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: AGPL-3.0, AGPL-3.0-only Imports: 2 Imported by: 0

Documentation

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

Constants

This section is empty.

Variables

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

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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