Class SqlJetDirectByteBuffer
- java.lang.Object
-
- org.tmatesoft.sqljet.core.internal.memory.SqlJetByteBuffer
-
- org.tmatesoft.sqljet.core.internal.memory.SqlJetDirectByteBuffer
-
- All Implemented Interfaces:
ISqlJetMemoryBuffer
public class SqlJetDirectByteBuffer extends SqlJetByteBuffer
-
-
Field Summary
-
Fields inherited from class org.tmatesoft.sqljet.core.internal.memory.SqlJetByteBuffer
buffer
-
-
Constructor Summary
Constructors Constructor Description SqlJetDirectByteBuffer()SqlJetDirectByteBuffer(java.nio.ByteBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocate(int size)Allocate chunk of memory.byte[]asArray()voidfill(int from, int count, byte value)voidgetBytes(int pointer, byte[] bytes, int to, int count)voidputBytes(int pointer, byte[] bytes, int from, int count)-
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, writeToFile
-
-
-
-
Method Detail
-
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
-
-