crystalspace.jbind.impl.csutil.databuff
Class csDataBuffer

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csutil.scf.csBase
          extended bycrystalspace.jbind.impl.csutil.databuff.csDataBuffer
All Implemented Interfaces:
iBase, iDataBuffer, iPointer

public class csDataBuffer
extends csBase
implements iDataBuffer

Author:
Quentin Anciaux

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csDataBuffer(iPointer nPointer)
           
 
Method Summary
 csNativeByteArray getData()
          Get the buffer as an abstract pointer.
static java.lang.Class getInterfaceClass()
           
static java.lang.String getInterfaceName()
           
static int getInterfaceVersion()
           
 java.lang.String getName()
          Return the name of the interface
 int getSize()
          Query the buffer size.
 int getVersion()
          Return the version of the interface
static void initSCF()
           
protected  boolean isNativePointerValidSafe(long pointer)
           
 
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Constructor Detail

csDataBuffer

public csDataBuffer(iPointer nPointer)
Parameters:
nPointer -
Method Detail

getVersion

public int getVersion()
Description copied from interface: iBase
Return the version of the interface

Specified by:
getVersion in interface iBase
Specified by:
getVersion in class csBase

getName

public java.lang.String getName()
Description copied from interface: iBase
Return the name of the interface

Specified by:
getName in interface iBase
Specified by:
getName in class csBase

initSCF

public static void initSCF()

getInterfaceVersion

public static int getInterfaceVersion()

getInterfaceName

public static java.lang.String getInterfaceName()

getInterfaceClass

public static java.lang.Class getInterfaceClass()

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long pointer)
Specified by:
isNativePointerValidSafe in class csNativeObject

getData

public csNativeByteArray getData()
Description copied from interface: iDataBuffer
Get the buffer as an abstract pointer. Implemented in csDataBuffer. Referenced by csDataBuffer::csDataBuffer(), GetInt8(), GetUint8(), and operator *().

Specified by:
getData in interface iDataBuffer
See Also:
iDataBuffer.getData()

getSize

public int getSize()
Description copied from interface: iDataBuffer
Query the buffer size. Implemented in csDataBuffer. Referenced by csDataBuffer::csDataBuffer().

Specified by:
getSize in interface iDataBuffer
Returns:
See Also:
iDataBuffer.getSize()