runtimeutil

package
v0.0.0-...-cd3ace8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IntBitSize is runtime int type bit size. 32 or 64.
	IntBitSize = 32 << (^uint(0) >> 63)

	// MaxInt is max value of runtime int type.
	MaxInt = 1<<(IntBitSize-1) - 1

	// MinInt is min value of runtime int type.
	MinInt = -1 << (IntBitSize - 1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteOrder

type ByteOrder int
const (
	LittleEndian ByteOrder = iota
	BigEndian
)

func CurrentByteOrder

func CurrentByteOrder() ByteOrder

CurrentByteOrder is get runtime machine endian.

func (ByteOrder) String

func (i ByteOrder) String() string

Jump to

Keyboard shortcuts

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