com.metaio.sdk.jni
Class ByteBuffer

java.lang.Object
  extended by com.metaio.sdk.jni.ByteBuffer

public class ByteBuffer
extends Object

Helper function to allow callbacks on android.


Constructor Summary
ByteBuffer()
           
ByteBuffer(byte[] _buffer, int _length)
           
ByteBuffer(ByteBuffer other)
           
ByteBuffer(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 void delete()
           
 byte[] getBuffer()
           
static long getCPtr(ByteBuffer obj)
           
 int getLength()
          legnth of the buffer
 void release()
           
 void setLength(int value)
          legnth of the buffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBuffer

public ByteBuffer(long cPtr,
                  boolean cMemoryOwn)

ByteBuffer

public ByteBuffer()

ByteBuffer

public ByteBuffer(byte[] _buffer,
                  int _length)
Parameters:
_buffer - pointer to the binary data
_length - length of the buffer

ByteBuffer

public ByteBuffer(ByteBuffer other)
Method Detail

getCPtr

public static long getCPtr(ByteBuffer obj)

delete

public void delete()

setLength

public void setLength(int value)
legnth of the buffer


getLength

public int getLength()
legnth of the buffer


getBuffer

public byte[] getBuffer()

release

public void release()