Interface ISqlJetMemoryPointer
- All Known Implementing Classes:
SqlJetMemoryPointer
public interface ISqlJetMemoryPointer
-
Method Summary
Modifier and TypeMethodDescriptionintvoidcopyFrom(int dstPos, ISqlJetMemoryPointer src, int srcPos, int length) voidcopyFrom(ISqlJetMemoryPointer src, int length) voidcopyFrom(ISqlJetMemoryPointer src, int srcPos, int length) voidfill(int count, byte value) voidfill(int from, int count, byte value) intgetAbsolute(int pointer) Get buffer which contains pointer.bytegetByte()Read byte at current address.bytegetByte(int pointer) Read byte at pointer.voidgetBytes(byte[] bytes) voidgetBytes(int pointer, byte[] bytes) voidgetBytes(int pointer, byte[] bytes, int count) voidgetBytes(int pointer, byte[] bytes, int to, int count) intRead unsigned byte at current address.intgetByteUnsigned(int pointer) Read unsigned byte at pointer.intgetInt()Read int at current address.intgetInt(int pointer) Read int at pointer.longRead unsigned int at current address.longgetIntUnsigned(int pointer) Read unsigned int at pointer.intgetLimit()longgetLong()Read long at current address.longgetLong(int pointer) Read long at pointer.getMoved(int count) intGet pointer address (offset in buffer).shortgetShort()Read short at current address.shortgetShort(int pointer) Read short at pointer.intRead unsigned short at current address.intgetShortUnsigned(int pointer) Read unsigned short at pointer.voidlimit(int n) voidmovePointer(int count) Move pointer.voidputByte(byte value) Write byte at current address.voidputByte(int pointer, byte value) Write byte at pointer.voidputBytes(byte[] bytes) voidputBytes(int pointer, byte[] bytes) voidputBytes(int pointer, byte[] bytes, int count) voidputBytes(int pointer, byte[] bytes, int to, int count) voidputByteUnsigned(int value) Write unsigned byte at current address.voidputByteUnsigned(int pointer, int value) Write unsigned byte at pointer.voidputInt(int value) Write int at current address.voidputInt(int pointer, int value) Write int at pointer.voidputIntUnsigned(int pointer, long value) Write unsigned int at pointer.voidputIntUnsigned(long value) Write unsigned int at current address.voidputLong(int pointer, long value) Write long at pointer.voidputLong(long value) Write long at current address.voidputShort(int pointer, short value) Write short at pointer.voidputShort(short value) Write short at current address.voidputShortUnsigned(int value) Write unsigned short at current address.voidputShortUnsigned(int pointer, int value) Write unsigned short at pointer.intreadFromFile(int pointer, RandomAccessFile file, long position, int count) Read from file into memory chunk at pointer.intreadFromFile(RandomAccessFile file, long position, int count) Read from file at current address.intvoidsetPointer(int pointer) Set pointer address (offset in buffer).intwriteToFile(int pointer, RandomAccessFile file, long position, int count) Write from memory chunk at pointer to file.intwriteToFile(RandomAccessFile file, long position, int count) Write to file at current address.
-
Method Details
-
getBuffer
ISqlJetMemoryBuffer getBuffer()Get buffer which contains pointer.- Returns:
-
getPointer
int getPointer()Get pointer address (offset in buffer).- Returns:
-
setPointer
void setPointer(int pointer) Set pointer address (offset in buffer).- Parameters:
pointer-
-
movePointer
void movePointer(int count) Move pointer. Add some count to pointer address. Count may be negative.- Parameters:
count- count which added to address. May be negative.
-
getByte
byte getByte()Read byte at current address.- Returns:
-
putByte
void putByte(byte value) Write byte at current address.- Parameters:
value-
-
getShort
short getShort()Read short at current address.- Returns:
-
putShort
void putShort(short value) Write short at current address.- Parameters:
value-
-
getInt
int getInt()Read int at current address.- Returns:
-
putInt
void putInt(int value) Write int at current address.- Parameters:
value-
-
getLong
long getLong()Read long at current address.- Returns:
-
putLong
void putLong(long value) Write long at current address.- Parameters:
value-
-
getByteUnsigned
int getByteUnsigned()Read unsigned byte at current address.- Returns:
-
putByteUnsigned
void putByteUnsigned(int value) Write unsigned byte at current address.- Parameters:
value-
-
getShortUnsigned
int getShortUnsigned()Read unsigned short at current address.- Returns:
-
putShortUnsigned
void putShortUnsigned(int value) Write unsigned short at current address.- Parameters:
value-
-
getIntUnsigned
long getIntUnsigned()Read unsigned int at current address.- Returns:
-
putIntUnsigned
void putIntUnsigned(long value) Write unsigned int at current address.- Parameters:
value-
-
readFromFile
Read from file at current address.- Parameters:
file-position-count-- Returns:
- Throws:
IOException
-
writeToFile
Write to file at current address.- Parameters:
file-position-count-- Returns:
- Throws:
IOException
-
getByte
byte getByte(int pointer) Read byte at pointer.- Parameters:
pointer-- Returns:
-
putByte
void putByte(int pointer, byte value) Write byte at pointer.- Parameters:
pointer-value-
-
getShort
short getShort(int pointer) Read short at pointer.- Parameters:
pointer-- Returns:
-
putShort
void putShort(int pointer, short value) Write short at pointer.- Parameters:
pointer-value-
-
getInt
int getInt(int pointer) Read int at pointer.- Parameters:
pointer-- Returns:
-
putInt
void putInt(int pointer, int value) Write int at pointer.- Parameters:
pointer-value-
-
getLong
long getLong(int pointer) Read long at pointer.- Parameters:
pointer-- Returns:
-
putLong
void putLong(int pointer, long value) Write long at pointer.- Parameters:
pointer-value-
-
getByteUnsigned
int getByteUnsigned(int pointer) Read unsigned byte at pointer.- Parameters:
pointer-- Returns:
-
putByteUnsigned
void putByteUnsigned(int pointer, int value) Write unsigned byte at pointer.- Parameters:
pointer-value-
-
getShortUnsigned
int getShortUnsigned(int pointer) Read unsigned short at pointer.- Parameters:
pointer-- Returns:
-
putShortUnsigned
void putShortUnsigned(int pointer, int value) Write unsigned short at pointer.- Parameters:
pointer-value-
-
getIntUnsigned
long getIntUnsigned(int pointer) Read unsigned int at pointer.- Parameters:
pointer-- Returns:
-
putIntUnsigned
void putIntUnsigned(int pointer, long value) Write unsigned int at pointer.- Parameters:
pointer-value-
-
readFromFile
Read from file into memory chunk at pointer. Method isn't synchronized on file.- Parameters:
pointer-file-position-count-- Returns:
- Throws:
IOException
-
writeToFile
Write from memory chunk at pointer to file. Method isn't synchronized on file.- Parameters:
pointer-file-position-count-- Returns:
- Throws:
IOException
-
remaining
int remaining()- Returns:
-
copyFrom
-
copyFrom
-
copyFrom
-
getAbsolute
int getAbsolute(int pointer) - Parameters:
pointer-- Returns:
-
fill
void fill(int from, int count, byte value) - Parameters:
from-count-value-
-
fill
void fill(int count, byte value) - Parameters:
count-value-from-
-
getBytes
void getBytes(byte[] bytes) - Parameters:
bytes-
-
getBytes
void getBytes(int pointer, byte[] bytes) - Parameters:
bytes-
-
getBytes
void getBytes(int pointer, byte[] bytes, int count) - Parameters:
bytes-
-
getBytes
void getBytes(int pointer, byte[] bytes, int to, int count) - Parameters:
bytes-
-
putBytes
void putBytes(byte[] bytes) - Parameters:
bytes-
-
putBytes
void putBytes(int pointer, byte[] bytes) - Parameters:
bytes-
-
putBytes
void putBytes(int pointer, byte[] bytes, int count) - Parameters:
bytes-
-
putBytes
void putBytes(int pointer, byte[] bytes, int to, int count) - Parameters:
bytes-
-
compareTo
- Parameters:
raw2-- Returns:
-
limit
void limit(int n) - Parameters:
n-
-
getLimit
int getLimit() -
getIdentic
ISqlJetMemoryPointer getIdentic() -
getMoved
-