Class TypeLayoutInfo
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.type.TypeLayoutInfo
Basic memory requirements (layout) for a type. Those objects are immutable type descriptor, and
are used by calling convention objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeLayoutInfo
A floating type fitting on a single slot (the size of the slot is architecture-dependant).static final TypeLayoutInfo
A floating type fitting on two slots (the size of the slot is architecture-dependant).static final TypeLayoutInfo
An integer type fitting on a single slot (the size of the slot is architecture-dependant).static final TypeLayoutInfo
An integer type fitting on two slots (the size of the slot is architecture-dependant).static final TypeLayoutInfo
A pointer type fitting on a single slot (the size of the slot is architecture-dependant). -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeLayoutInfo
c
(int slotcount) Create another entry type, usually used for composite types (structures and similar).boolean
static TypeLayoutInfo
f
(int slotcount) Create a floating point entry.int
int
hashCode()
static TypeLayoutInfo
i
(int slotcount) Create an integral entry.boolean
boolean
isFloat()
boolean
boolean
boolean
isVector()
static TypeLayoutInfo
p
(int slotcount) Create a pointer entry.toString()
static TypeLayoutInfo
v
(int slotcount) Create a vector-type entry.
-
Field Details
-
i1
An integer type fitting on a single slot (the size of the slot is architecture-dependant). -
i2
An integer type fitting on two slots (the size of the slot is architecture-dependant). -
f1
A floating type fitting on a single slot (the size of the slot is architecture-dependant). -
f2
A floating type fitting on two slots (the size of the slot is architecture-dependant). -
ptr
A pointer type fitting on a single slot (the size of the slot is architecture-dependant).
-
-
Method Details
-
getSlotcount
public int getSlotcount() -
getCategory
-
i
Create an integral entry.- Parameters:
slotcount
-- Returns:
-
f
Create a floating point entry.- Parameters:
slotcount
-- Returns:
-
p
Create a pointer entry.- Parameters:
slotcount
- usually 1- Returns:
-
v
Create a vector-type entry.- Parameters:
slotcount
-- Returns:
-
c
Create another entry type, usually used for composite types (structures and similar).- Parameters:
slotcount
-- Returns:
-
hashCode
public int hashCode() -
equals
-
toString
-
isInteger
public boolean isInteger() -
isFloat
public boolean isFloat() -
isPointer
public boolean isPointer() -
isVector
public boolean isVector() -
isComposite
public boolean isComposite()
-