org.xbig.base
Class NativeShortBuffer

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.xbig.base.NativeShortBuffer
All Implemented Interfaces:
INativeObject

public class NativeShortBuffer
extends NativeObject

Allows allocation of a memory region.


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
NativeShortBuffer(InstancePointer pInstance)
           
NativeShortBuffer(InstancePointer pointer, boolean b)
           
NativeShortBuffer(int size)
          Allocate memory of passed size.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 short getIndex(int index)
          Get value from buffer at a given index.
 int getSize()
          Get size of this buffer.
 VoidPointer getVoidPointer()
          Get a VoidPointer for this buffer.
 void setIndex(int index, short value)
          Set value at a given index.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NativeShortBuffer

public NativeShortBuffer(InstancePointer pInstance)

NativeShortBuffer

public NativeShortBuffer(InstancePointer pointer,
                         boolean b)

NativeShortBuffer

public NativeShortBuffer(int size)
Allocate memory of passed size.

Parameters:
size - Size of memory to allocate.
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
NativeObject.delete()

getIndex

public short getIndex(int index)
Get value from buffer at a given index.

Parameters:
index - Index to get value from.

setIndex

public void setIndex(int index,
                     short value)
Set value at a given index.

Parameters:
index - Index to set.
value - Value to set.

getSize

public int getSize()
Get size of this buffer. _org_xbig_std_ios.c

Returns:
Size of this buffer.

getVoidPointer

public VoidPointer getVoidPointer()
Get a VoidPointer for this buffer.

Returns:
VoidPointer pointing at this buffer.

finalize

public void finalize()
Overrides:
finalize in class NativeObject


Copyright © 2007 netAllied GmbH. All Rights Reserved.