|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISqlJetMemoryBuffer
Represents SQLJet's operations with memory.
| Method Summary | |
|---|---|
void |
allocate(int size)
Allocate chunk of memory. |
byte[] |
asArray()
|
int |
compareTo(int pointer,
ISqlJetMemoryBuffer buffer,
int bufferPointer)
|
void |
copyFrom(int dstPos,
ISqlJetMemoryBuffer src,
int srcPos,
int count)
|
void |
fill(int from,
int count,
byte value)
|
void |
free()
Fries chunk of memory. |
byte |
getByte(int pointer)
Read byte at pointer. |
void |
getBytes(int pointer,
byte[] bytes,
int to,
int count)
|
int |
getByteUnsigned(int pointer)
Read unsigned byte at pointer. |
int |
getInt(int pointer)
Read int at pointer. |
long |
getIntUnsigned(int pointer)
Read unsigned int at pointer. |
long |
getLong(int pointer)
Read long at pointer. |
ISqlJetMemoryPointer |
getPointer(int pointer)
Returns pointer in memory chunk at passed offset. |
short |
getShort(int pointer)
Read short at pointer. |
int |
getShortUnsigned(int pointer)
Read unsigned short at pointer. |
int |
getSize()
Size of allocated memory chunk. |
boolean |
isAllocated()
Returns true if memory is allocated. |
void |
putByte(int pointer,
byte value)
Write byte at pointer. |
void |
putBytes(int pointer,
byte[] bytes,
int from,
int count)
|
void |
putByteUnsigned(int pointer,
int value)
Write unsigned byte at pointer. |
void |
putInt(int pointer,
int value)
Write int at pointer. |
void |
putIntUnsigned(int pointer,
long value)
Write unsigned int at pointer. |
void |
putLong(int pointer,
long value)
Write long at pointer. |
void |
putShort(int pointer,
short value)
Write short at pointer. |
void |
putShortUnsigned(int pointer,
int value)
Write unsigned short at pointer. |
int |
readFromFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
Read from file into memory chunk at pointer. |
int |
writeToFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
Write from memory chunk at pointer to file. |
| Method Detail |
|---|
void allocate(int size)
size - size of chunk in bytesvoid free()
boolean isAllocated()
ISqlJetMemoryPointer getPointer(int pointer)
pointer -
int getSize()
byte getByte(int pointer)
pointer -
void putByte(int pointer,
byte value)
pointer - value - short getShort(int pointer)
pointer -
void putShort(int pointer,
short value)
pointer - value - int getInt(int pointer)
pointer -
void putInt(int pointer,
int value)
pointer - value - long getLong(int pointer)
pointer -
void putLong(int pointer,
long value)
pointer - value - int getByteUnsigned(int pointer)
pointer -
void putByteUnsigned(int pointer,
int value)
pointer - value - int getShortUnsigned(int pointer)
pointer -
void putShortUnsigned(int pointer,
int value)
pointer - value - long getIntUnsigned(int pointer)
pointer -
void putIntUnsigned(int pointer,
long value)
pointer - value -
int readFromFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
throws java.io.IOException
pointer - file - position - count -
java.io.IOException
int writeToFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
throws java.io.IOException
pointer - file - position - count -
java.io.IOException
void copyFrom(int dstPos,
ISqlJetMemoryBuffer src,
int srcPos,
int count)
dstPos - src - srcPos - count -
void fill(int from,
int count,
byte value)
from - count - value -
void getBytes(int pointer,
byte[] bytes,
int to,
int count)
absolute - bytes - to - count -
void putBytes(int pointer,
byte[] bytes,
int from,
int count)
absolute - bytes - to - count - byte[] asArray()
int compareTo(int pointer,
ISqlJetMemoryBuffer buffer,
int bufferPointer)
pointer - buffer - pointer2 -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||