org.jruby.ext.posix
Class HeapStruct

java.lang.Object
  extended by org.jruby.ext.posix.HeapStruct
All Implemented Interfaces:
com.sun.jna.NativeMapped
Direct Known Subclasses:
BaseHeapFileStat

public class HeapStruct
extends java.lang.Object
implements com.sun.jna.NativeMapped


Nested Class Summary
protected  class HeapStruct.Byte
           
protected  class HeapStruct.Field
           
protected  class HeapStruct.Int16
           
protected  class HeapStruct.Int32
           
protected  class HeapStruct.Int64
           
protected  class HeapStruct.Int8
           
protected  class HeapStruct.Integer
           
protected  class HeapStruct.Long
           
protected  class HeapStruct.LongLong
           
protected  class HeapStruct.Short
           
protected  class HeapStruct.UInt16
           
protected  class HeapStruct.UInt32
           
protected  class HeapStruct.UInt8
           
protected  class HeapStruct.ULong
           
 
Constructor Summary
HeapStruct()
           
 
Method Summary
protected  int addField(int size, int align)
           
 java.lang.Object fromNative(java.lang.Object arg0, com.sun.jna.FromNativeContext arg1)
           
protected  java.nio.ByteBuffer getByteBuffer()
           
 int getStructSize()
           
 java.lang.Class nativeType()
           
 java.lang.Object toNative()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapStruct

public HeapStruct()
Method Detail

fromNative

public java.lang.Object fromNative(java.lang.Object arg0,
                                   com.sun.jna.FromNativeContext arg1)
Specified by:
fromNative in interface com.sun.jna.NativeMapped

toNative

public java.lang.Object toNative()
Specified by:
toNative in interface com.sun.jna.NativeMapped

nativeType

public java.lang.Class nativeType()
Specified by:
nativeType in interface com.sun.jna.NativeMapped

getByteBuffer

protected final java.nio.ByteBuffer getByteBuffer()

getStructSize

public final int getStructSize()

addField

protected final int addField(int size,
                             int align)


Copyright © 2010. All Rights Reserved.