Class SqlJetDirectByteBuffer
java.lang.Object
org.tmatesoft.sqljet.core.internal.memory.SqlJetByteBuffer
org.tmatesoft.sqljet.core.internal.memory.SqlJetDirectByteBuffer
- All Implemented Interfaces:
ISqlJetMemoryBuffer
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
Field Summary
Fields inherited from class org.tmatesoft.sqljet.core.internal.memory.SqlJetByteBuffer
buffer -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.tmatesoft.sqljet.core.internal.memory.SqlJetByteBuffer
compareTo, copyFrom, free, getByte, getByteUnsigned, getInt, getIntUnsigned, getLong, getPointer, getShort, getShortUnsigned, getSize, isAllocated, putByte, putByteUnsigned, putInt, putIntUnsigned, putLong, putShort, putShortUnsigned, readFromFile, writeToFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SqlJetDirectByteBuffer
public SqlJetDirectByteBuffer() -
SqlJetDirectByteBuffer
public SqlJetDirectByteBuffer(java.nio.ByteBuffer buffer)
-
-
Method Details
-
allocate
public void allocate(int size) Description copied from interface:ISqlJetMemoryBufferAllocate chunk of memory. If memory already has allocated then fries current chunk and allocates new.- Specified by:
allocatein interfaceISqlJetMemoryBuffer- Overrides:
allocatein classSqlJetByteBuffer- Parameters:
size- size of chunk in bytes
-
asArray
public byte[] asArray()- Specified by:
asArrayin interfaceISqlJetMemoryBuffer- Overrides:
asArrayin classSqlJetByteBuffer- Returns:
-
fill
public void fill(int from, int count, byte value) - Specified by:
fillin interfaceISqlJetMemoryBuffer- Overrides:
fillin classSqlJetByteBuffer
-
getBytes
public void getBytes(int pointer, byte[] bytes, int to, int count) - Specified by:
getBytesin interfaceISqlJetMemoryBuffer- Overrides:
getBytesin classSqlJetByteBuffer
-
putBytes
public void putBytes(int pointer, byte[] bytes, int from, int count) - Specified by:
putBytesin interfaceISqlJetMemoryBuffer- Overrides:
putBytesin classSqlJetByteBuffer
-