Interface MemorySizeable
- All Known Subinterfaces:
NativeArray<T>,NativeParsable
- All Known Implementing Classes:
ArrayStructureInfo,BBFloat1,BBFloat2,BBFloat3,BBFloat3x3,BBFloat4,BBFloat4x4,BBFloatMxN,BBFloatN,BBInt1,BBInt2,BBInt3,BBInt4,BBIntN,BBLong1,BBLong2,BBLong3,BBLong4,BBLongN,BBMatrixInfo,BBVector,BBVectorInfo,ComplexStructure,ComplexStructureInfo,ModTrackingStructure,PrimitiveTypeArray,Structure,StructureArray,StructureInfo
public interface MemorySizeable
An object that may be stored in the heap memory.
-
Method Summary
Modifier and TypeMethodDescriptionintThe recommended alignment of this object in memory.intRequired size including padding.
-
Method Details
-
getRequiredSize
int getRequiredSize()Required size including padding.- Returns:
- the size required by this object in memory
-
getAlignment
int getAlignment()The recommended alignment of this object in memory. Either1, 2, 4, 8or16.- Returns:
- recommended alignment
-