org.openjdk.jol.datamodel
Interface DataModel

All Known Implementing Classes:
CurrentDataModel, X86_32_DataModel, X86_64_COOPS_DataModel, X86_64_DataModel

public interface DataModel

Describes the data model, notably, the basic types sizes.

Author:
Aleksey Shipilev

Method Summary
 int headerSize()
          Return the object header size.
 int sizeOf(String klass)
          Return the size of the type.
 

Method Detail

headerSize

int headerSize()
Return the object header size.

Returns:
object header size in bytes.

sizeOf

int sizeOf(String klass)
Return the size of the type.

Parameters:
klass - string representation of the type.
Returns:
size in bytes.


Copyright © 2013. All Rights Reserved.