INT_

Class used internally to represent native booleans.

Summary
INT_Class used internally to represent native booleans.
Functions and Properties
INT_.bitsGet number of bits of the native integers represented by this class.
INT_.bits=Set number of bits of the native integers represented by this class.
INT_.signedGet boolean indicating whether this class represents signed or unsigned integers.
INT_.signed=Set boolean indicating whether this class represents signed or unsigned integers.
INT_.to_sDisplay name of this type.
INT_.defaultReturn default value for this type.
INT_.typesizeGet memory size of this type.
INT_.descriptorDescriptor for Array.pack and String.unpack.
INT_.coercionRuby coercion mechanism.
INT_.coerceNative coercion.
INT_.==Ruby comparison operator.
Related
Constants
Signed or unsignedTo be used with the method INT.
Integer type shortcuts
Functions
INTCreate integer class.

Functions and Properties

INT_.bits

def INT_.bits

Get number of bits of the native integers represented by this class.

INT_.bits=

def INT_.bits=(value)

Set number of bits of the native integers represented by this class.

INT_.signed

Get boolean indicating whether this class represents signed or unsigned integers.

INT_.signed=

Set boolean indicating whether this class represents signed or unsigned integers.

INT_.to_s

def INT_.to_s

Display name of this type.

INT_.default

def INT_.default

Return default value for this type.

Returns

0

INT_.typesize

def INT_.typesize

Get memory size of this type.

Returns

Number of bits divided by 8.

INT_.descriptor

def INT_.descriptor

Descriptor for Array.pack and String.unpack.

Returns

One of ‘c’, ‘C’, ‘s’, ‘S’, ‘i’, ‘I’, ‘q’, and ‘Q’.

INT_.coercion

def INT_.coercion(other)

Ruby coercion mechanism.

INT_.coerce

def INT_.coerce(other)

Native coercion.

INT_.==

def INT_.==(other)

Ruby comparison operator.

Related

Summary
Constants
Signed or unsignedTo be used with the method INT.
Integer type shortcuts
Functions
INTCreate integer class.

Constants

Signed or unsigned

To be used with the method INT.

SIGNEDtrue
UNSIGNEDfalse

Integer type shortcuts

UBYTE8-bit signed integer
BYTE8-bit unsigned integer
USINT16-bit unsigned integer
SINT16-bit signed integer
UINT32-bit unsigned integer
INT32-bit signed integer
ULONG64-bit unsigned integer
LONG64-bit signed integer

Functions

INT

def INT(bits,
signed)

Create integer class.

Parameters

bitsNumber of bits.  Must be 8, 16, 32, or 64.
signedBoolean integer.  True for signed integers.
def INT_.bits
Get number of bits of the native integers represented by this class.
def INT_.bits=(value)
Set number of bits of the native integers represented by this class.
def INT_.to_s
Display name of this type.
def INT_.default
Return default value for this type.
def INT_.typesize
Get memory size of this type.
def INT_.descriptor
Descriptor for Array.pack and String.unpack.
def INT_.coercion(other)
Ruby coercion mechanism.
def INT_.coerce(other)
Native coercion.
def INT_.==(other)
Ruby comparison operator.
32-bit signed integer
Close