module Ronin::Support::Binary::CTypes::LittleEndian
Represents the C types, but in little-endian byte-order.
Constants
- ADDRESS_SIZE
The size of a native pointer in bytes.
@return [4, 8]
- BYTE
The ‘byte` type.
- DOUBLE
The ‘double` type (little-endianness).
- DWORD
The “dword” type (32-bit little-endian unsigned integer).
- FLOAT
The ‘float` type (little-endianness).
- FLOAT32
The ‘float` type (little-endianness).
- FLOAT64
The ‘double` type (little-endianness).
- INT
The ‘int` type.
- INT16
The ‘int16_t` type (little-endianness).
- INT32
The ‘int32_t` type (little-endianness).
- INT64
The ‘int64_t` type (little-endianness).
- INT8
The ‘int8_t` type.
- LONG
The ‘long` type.
- LONG_LONG
The ‘long long` type.
- MACHINE_WORD
The “machine word” type.
@return [UINT64, UINT32]
{UINT64} on 64-bit systems and {UINT32} on 32-bit systems.
- POINTER
The ‘void *` type.
- QWORD
The “qword” type (64-bit little-endian unsigned integer).
- SHORT
The ‘short` type.
- TYPES
The little-endian types.
- UINT
The ‘unsigned int` type.
- UINT16
The ‘uint16_t` type (little-endianness).
- UINT32
The ‘uint32_t` type (little-endianness).
- UINT64
The ‘uint64_t` type (little-endianness).
- UINT8
The ‘uint8_t` type.
- ULONG
The ‘unsigned long` type.
- ULONG_LONG
The ‘unsigned long long` type.
- USHORT
The ‘unsigned short` type.
- WORD
The “word” type (16-bit little-endian unsigned integer).
Public Class Methods
Fetches the type from {TYPES}.
@param [Symbol] name
The type name to lookup.
@return [Type]
The type object from {TYPES}.
@raise [ArgumentError]
The type name was unknown.
# File lib/ronin/support/binary/ctypes/little_endian.rb, line 189 def self.[](name) TYPES.fetch(name) do raise(ArgumentError,"unknown type: #{name.inspect}") end end