public final class SqlJetMemoryPointer extends java.lang.Object implements ISqlJetMemoryPointer
| Constructor and Description |
|---|
SqlJetMemoryPointer(ISqlJetMemoryBuffer buffer,
int pointer) |
SqlJetMemoryPointer(ISqlJetMemoryBuffer buffer,
int pointer,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ISqlJetMemoryPointer ptr) |
void |
copyFrom(int dstPos,
ISqlJetMemoryPointer src,
int srcPos,
int length) |
void |
copyFrom(ISqlJetMemoryPointer src,
int length) |
void |
copyFrom(ISqlJetMemoryPointer src,
int srcPos,
int length) |
void |
fill(int count,
byte value) |
void |
fill(int from,
int count,
byte value) |
int |
getAbsolute(int pointer) |
ISqlJetMemoryBuffer |
getBuffer()
Get buffer which contains pointer.
|
byte |
getByte()
Read byte at current address.
|
byte |
getByte(int pointer)
Read byte at pointer.
|
void |
getBytes(byte[] bytes) |
void |
getBytes(int pointer,
byte[] bytes) |
void |
getBytes(int pointer,
byte[] bytes,
int count) |
void |
getBytes(int pointer,
byte[] bytes,
int to,
int count) |
int |
getByteUnsigned()
Read unsigned byte at current address.
|
int |
getByteUnsigned(int pointer)
Read unsigned byte at pointer.
|
ISqlJetMemoryPointer |
getIdentic() |
int |
getInt()
Read int at current address.
|
int |
getInt(int pointer)
Read int at pointer.
|
long |
getIntUnsigned()
Read unsigned int at current address.
|
long |
getIntUnsigned(int pointer)
Read unsigned int at pointer.
|
int |
getLimit() |
long |
getLong()
Read long at current address.
|
long |
getLong(int pointer)
Read long at pointer.
|
ISqlJetMemoryPointer |
getMoved(int count) |
int |
getPointer()
Get pointer address (offset in buffer).
|
short |
getShort()
Read short at current address.
|
short |
getShort(int pointer)
Read short at pointer.
|
int |
getShortUnsigned()
Read unsigned short at current address.
|
int |
getShortUnsigned(int pointer)
Read unsigned short at pointer.
|
void |
limit(int n) |
void |
movePointer(int count)
Move pointer.
|
void |
putByte(byte value)
Write byte at current address.
|
void |
putByte(int pointer,
byte value)
Write byte at pointer.
|
void |
putBytes(byte[] bytes) |
void |
putBytes(int pointer,
byte[] bytes) |
void |
putBytes(int pointer,
byte[] bytes,
int count) |
void |
putBytes(int pointer,
byte[] bytes,
int to,
int count) |
void |
putByteUnsigned(int value)
Write unsigned byte at current address.
|
void |
putByteUnsigned(int pointer,
int value)
Write unsigned byte at pointer.
|
void |
putInt(int value)
Write int at current address.
|
void |
putInt(int pointer,
int value)
Write int at pointer.
|
void |
putIntUnsigned(int pointer,
long value)
Write unsigned int at pointer.
|
void |
putIntUnsigned(long value)
Write unsigned int at current address.
|
void |
putLong(int pointer,
long value)
Write long at pointer.
|
void |
putLong(long value)
Write long at current address.
|
void |
putShort(int pointer,
short value)
Write short at pointer.
|
void |
putShort(short value)
Write short at current address.
|
void |
putShortUnsigned(int value)
Write unsigned short at current address.
|
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 |
readFromFile(java.io.RandomAccessFile file,
long position,
int count)
Read from file at current address.
|
int |
remaining() |
void |
setPointer(int pointer)
Set pointer address (offset in buffer).
|
int |
writeToFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
Write from memory chunk at pointer to file.
|
int |
writeToFile(java.io.RandomAccessFile file,
long position,
int count)
Write to file at current address.
|
public SqlJetMemoryPointer(ISqlJetMemoryBuffer buffer, int pointer)
public SqlJetMemoryPointer(ISqlJetMemoryBuffer buffer, int pointer, int limit)
public final ISqlJetMemoryBuffer getBuffer()
ISqlJetMemoryPointergetBuffer in interface ISqlJetMemoryPointerpublic final int getPointer()
ISqlJetMemoryPointergetPointer in interface ISqlJetMemoryPointerpublic final void setPointer(int pointer)
ISqlJetMemoryPointersetPointer in interface ISqlJetMemoryPointerpublic final void movePointer(int count)
ISqlJetMemoryPointermovePointer in interface ISqlJetMemoryPointercount - count which added to address. May be negative.public final byte getByte()
ISqlJetMemoryPointergetByte in interface ISqlJetMemoryPointerpublic final int getInt()
ISqlJetMemoryPointergetInt in interface ISqlJetMemoryPointerpublic final long getLong()
ISqlJetMemoryPointergetLong in interface ISqlJetMemoryPointerpublic final short getShort()
ISqlJetMemoryPointergetShort in interface ISqlJetMemoryPointerpublic final int getByteUnsigned()
ISqlJetMemoryPointergetByteUnsigned in interface ISqlJetMemoryPointerpublic final long getIntUnsigned()
ISqlJetMemoryPointergetIntUnsigned in interface ISqlJetMemoryPointerpublic final int getShortUnsigned()
ISqlJetMemoryPointergetShortUnsigned in interface ISqlJetMemoryPointerpublic final void putByte(byte value)
ISqlJetMemoryPointerputByte in interface ISqlJetMemoryPointerpublic final void putInt(int value)
ISqlJetMemoryPointerputInt in interface ISqlJetMemoryPointerpublic final void putLong(long value)
ISqlJetMemoryPointerputLong in interface ISqlJetMemoryPointerpublic final void putShort(short value)
ISqlJetMemoryPointerputShort in interface ISqlJetMemoryPointerpublic final void putByteUnsigned(int value)
ISqlJetMemoryPointerputByteUnsigned in interface ISqlJetMemoryPointerpublic final void putIntUnsigned(long value)
ISqlJetMemoryPointerputIntUnsigned in interface ISqlJetMemoryPointerpublic final void putShortUnsigned(int value)
ISqlJetMemoryPointerputShortUnsigned in interface ISqlJetMemoryPointerpublic final int readFromFile(java.io.RandomAccessFile file,
long position,
int count)
throws java.io.IOException
ISqlJetMemoryPointerreadFromFile in interface ISqlJetMemoryPointerjava.io.IOExceptionpublic final int writeToFile(java.io.RandomAccessFile file,
long position,
int count)
throws java.io.IOException
ISqlJetMemoryPointerwriteToFile in interface ISqlJetMemoryPointerjava.io.IOExceptionpublic final int getAbsolute(int pointer)
getAbsolute in interface ISqlJetMemoryPointerpointer - public final byte getByte(int pointer)
ISqlJetMemoryPointergetByte in interface ISqlJetMemoryPointerpublic final int getByteUnsigned(int pointer)
ISqlJetMemoryPointergetByteUnsigned in interface ISqlJetMemoryPointerpublic final int getInt(int pointer)
ISqlJetMemoryPointergetInt in interface ISqlJetMemoryPointerpublic final long getIntUnsigned(int pointer)
ISqlJetMemoryPointergetIntUnsigned in interface ISqlJetMemoryPointerpublic final long getLong(int pointer)
ISqlJetMemoryPointergetLong in interface ISqlJetMemoryPointerpublic final short getShort(int pointer)
ISqlJetMemoryPointergetShort in interface ISqlJetMemoryPointerpublic final int getShortUnsigned(int pointer)
ISqlJetMemoryPointergetShortUnsigned in interface ISqlJetMemoryPointerpublic final void putByte(int pointer,
byte value)
ISqlJetMemoryPointerputByte in interface ISqlJetMemoryPointerpublic final void putByteUnsigned(int pointer,
int value)
ISqlJetMemoryPointerputByteUnsigned in interface ISqlJetMemoryPointerpublic final void putInt(int pointer,
int value)
ISqlJetMemoryPointerputInt in interface ISqlJetMemoryPointerpublic final void putIntUnsigned(int pointer,
long value)
ISqlJetMemoryPointerputIntUnsigned in interface ISqlJetMemoryPointerpublic final void putLong(int pointer,
long value)
ISqlJetMemoryPointerputLong in interface ISqlJetMemoryPointerpublic final void putShort(int pointer,
short value)
ISqlJetMemoryPointerputShort in interface ISqlJetMemoryPointerpublic final void putShortUnsigned(int pointer,
int value)
ISqlJetMemoryPointerputShortUnsigned in interface ISqlJetMemoryPointerpublic final int readFromFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
throws java.io.IOException
ISqlJetMemoryPointerreadFromFile in interface ISqlJetMemoryPointerjava.io.IOExceptionpublic final int writeToFile(int pointer,
java.io.RandomAccessFile file,
long position,
int count)
throws java.io.IOException
ISqlJetMemoryPointerwriteToFile in interface ISqlJetMemoryPointerjava.io.IOExceptionpublic final int remaining()
remaining in interface ISqlJetMemoryPointerpublic final void copyFrom(int dstPos,
ISqlJetMemoryPointer src,
int srcPos,
int length)
copyFrom in interface ISqlJetMemoryPointerpublic final void copyFrom(ISqlJetMemoryPointer src, int srcPos, int length)
copyFrom in interface ISqlJetMemoryPointerpublic final void copyFrom(ISqlJetMemoryPointer src, int length)
copyFrom in interface ISqlJetMemoryPointerpublic final void fill(int count,
byte value)
fill in interface ISqlJetMemoryPointerpublic final void fill(int from,
int count,
byte value)
fill in interface ISqlJetMemoryPointerpublic final void getBytes(byte[] bytes)
getBytes in interface ISqlJetMemoryPointerpublic final void getBytes(int pointer,
byte[] bytes)
getBytes in interface ISqlJetMemoryPointerpublic final void getBytes(int pointer,
byte[] bytes,
int count)
getBytes in interface ISqlJetMemoryPointerpublic final void getBytes(int pointer,
byte[] bytes,
int to,
int count)
getBytes in interface ISqlJetMemoryPointerpublic final void putBytes(byte[] bytes)
putBytes in interface ISqlJetMemoryPointerpublic final void putBytes(int pointer,
byte[] bytes)
putBytes in interface ISqlJetMemoryPointerpublic final void putBytes(int pointer,
byte[] bytes,
int count)
putBytes in interface ISqlJetMemoryPointerpublic final void putBytes(int pointer,
byte[] bytes,
int to,
int count)
putBytes in interface ISqlJetMemoryPointerpublic final int compareTo(ISqlJetMemoryPointer ptr)
compareTo in interface ISqlJetMemoryPointerpublic final void limit(int n)
limit in interface ISqlJetMemoryPointerpublic final int getLimit()
getLimit in interface ISqlJetMemoryPointerpublic final ISqlJetMemoryPointer getIdentic()
getIdentic in interface ISqlJetMemoryPointerpublic ISqlJetMemoryPointer getMoved(int count)
getMoved in interface ISqlJetMemoryPointerCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.