Interface DataModel
- All Known Implementing Classes:
Model32, Model64, Model64_Lilliput, ModelVM
public interface DataModel
Describes the data model, notably,
the basic types sizes.
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the array header size.intReturn the array length header size.intReturn the class header size.intReturn the object header size.intReturn the mark header size.intReturn the object alignment.intReturn the size of the type.
-
Method Details
-
markHeaderSize
int markHeaderSize()Return the mark header size.- Returns:
- mark header size in bytes.
-
classHeaderSize
int classHeaderSize()Return the class header size.- Returns:
- class header size in bytes.
-
arrayLengthHeaderSize
int arrayLengthHeaderSize()Return the array length header size.- Returns:
- array length header size in bytes.
-
headerSize
int headerSize()Return the object header size.- Returns:
- object header size in bytes.
-
arrayHeaderSize
int arrayHeaderSize()Return the array header size.- Returns:
- object header size in bytes.
-
sizeOf
Return the size of the type.- Parameters:
klass- string representation of the type.- Returns:
- size in bytes.
-
objectAlignment
int objectAlignment()Return the object alignment.- Returns:
- minimal object alignment
-