ByteOrder module makes it possible to determine your systems byte order, either big or little endian.

Usage

  ByteOrder.byteorder => :LittleEndian

Author(s)

  • Michael Neumann
Methods
Constants
Native = :Native
BigEndian = Big = Network = :BigEndian
LittleEndian = Little = :LittleEndian
Public Instance methods
big?()

Alias for big_endian?

big_endian?() [ source ]
This method is also aliased as big? network?
byte_order() [ source ]

examines the byte order of the underlying machine

This method is also aliased as byteorder
byteorder()

Alias for byte_order

little?()

Alias for little_endian?

little_endian?() [ source ]
This method is also aliased as little?
network?()

Alias for big_endian?