|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.IntelByteBuffer
Class for creating or interpreting byte arrays representing Intel byte order structures with C-type data types. Class is not "thread safe", so if buffer will be concurrently accessed by multiple threads, accesses should be synchronized.
Field Summary | |
---|---|
static int |
SIZEOF_CHAR
|
static int |
SIZEOF_DOUBLE
|
static int |
SIZEOF_FLOAT
|
static int |
SIZEOF_LONG
|
static int |
SIZEOF_LONG64
Size of various Intel data types |
static int |
SIZEOF_SHORT
|
static int |
SIZEOF_UCHAR
|
static int |
SIZEOF_ULONG
|
static int |
SIZEOF_UNICODE
|
static int |
SIZEOF_USHORT
|
Constructor Summary | |
---|---|
IntelByteBuffer(byte[] inbuf)
Constructor for interpreting a provided byte array. |
|
IntelByteBuffer(byte[] inbuf,
int start_off)
Constructor for interpreting a provided byte array, with offsets relative to a provided offset. |
|
IntelByteBuffer(int buflen)
Constructor for building a new byte array with a given length. |
Method Summary | |
---|---|
static java.lang.String |
BytesToString(byte[] buffer)
Convert bytes in a byte array to a string of hexadecimal digits. |
static java.lang.String |
BytesToString(byte[] buffer,
int start,
int len)
Convert range of bytes in a byte array to a string of hexadecimal digits. |
static int |
GetASCIIZLength(java.lang.String val)
Get length of ASCIIZ version of string, in bytes ASCIIZ strings are limited to character codes 0000-007f |
byte[] |
GetBuffer()
Get byte buffer |
static int |
GetCompUnicodeLength(java.lang.String val)
Get length of compressed unicode version of string, in bytes |
static int |
GetEncodedUTF8Length(byte[] buf,
int off)
Test for valid UTF-8 encoded string, and return length |
static int |
GetIntValueSetLength(IntValueSet valset)
Get length needed for IntValueSet |
static int |
GetLengthEncodedLong64ArrayLength(long[] val,
int start,
int len)
Get length needed for length encodeding given array as Long64s |
static int |
GetLengthEncodedLONGArrayLength(int[] val,
int start,
int len)
Get length needed for length encodeding given array as LONGs |
static int |
GetLengthEncodedULONGArrayLength(long[] val,
int start,
int len)
Get length needed for length encodeding given array as ULONGs |
static int |
GetLongValueSetLength(LongValueSet valset)
Get length needed for LongValueSet |
int |
GetOffset()
Get current offset index (relative to start) |
int |
GetStart()
Get start index |
static int |
GetStringValueSetLength(StringValueSet valset)
Get length needed for StringValueSet |
static byte[] |
GetUTF8(java.lang.String s)
Get UTF-8 encoding of string |
static int |
GetUTF8Length(java.lang.String s)
Get length needed to encode string in UTF-8 |
static void |
printBytes(byte[] buf)
Print bytes to System.out (for debug) |
static void |
printBytes(byte[] buf,
int begin,
int len)
Print bytes to System.out (for debug) |
java.lang.String |
ReadASCIIZ()
Read ASCIIZ string at current offset, advance, return as String. |
static java.lang.String |
ReadASCIIZ(byte[] buffer,
int off)
Read ASCIIZ string at selected offset in given buffer, return as String. |
java.lang.String |
ReadASCIIZ(int off)
Read ASCIIZ string at selected offset, return as String. |
byte |
ReadCHAR()
Read CHAR from current offset, and advance offset |
static byte |
ReadCHAR(byte[] buffer,
int off)
Read CHAR from selected offset in given buffer. |
byte |
ReadCHAR(int off)
Read CHAR from selected offset. |
static byte[] |
ReadCHARArray(byte[] buffer,
int off,
int len)
Read byte array from selected offset in given buffer. |
byte[] |
ReadCHARArray(int len)
Read byte array from current offset, and advance offset |
byte[] |
ReadCHARArray(int off,
int len)
Read byte array from selected offset. |
java.lang.String |
ReadCompUnicode()
Read compressed unicode string at current offset, advance, return as String. |
static java.lang.String |
ReadCompUnicode(byte[] buffer,
int off)
Read compressed unicode string at selected offset in given buffer, return as String. |
java.lang.String |
ReadCompUnicode(int off)
Read compressed unicode string at selected offset, return as String. |
double |
ReadDouble()
Read double from current offset, and advance offset |
static double |
ReadDouble(byte[] buffer,
int off)
Read double from selected offset from given buffer. |
double |
ReadDouble(int off)
Read double from selected offset. |
static double[] |
ReadDoubleArray(byte[] buffer,
int off,
int len)
Read double array from selected offset in given buffer. |
double[] |
ReadDoubleArray(int len)
Read double array from current offset, and advance offset |
double[] |
ReadDoubleArray(int off,
int len)
Read double array from selected offset. |
float |
ReadFloat()
Read float from current offset, and advance offset |
static float |
ReadFloat(byte[] buffer,
int off)
Read float from selected offset in given buffer. |
float |
ReadFloat(int off)
Read float from selected offset. |
static float[] |
ReadFloatArray(byte[] buffer,
int off,
int len)
Read float array from selected offset in given buffer. |
float[] |
ReadFloatArray(int len)
Read float array from current offset, and advance offset |
float[] |
ReadFloatArray(int off,
int len)
Read float from selected offset. |
IntValueSet |
ReadIntValueSet()
Read IntValueSet, and advance offset. |
static IntValueSet |
ReadIntValueSet(byte[] buffer,
int off)
Read IntValueSet from selected offset in given buffer. |
IntValueSet |
ReadIntValueSet(int off)
Read IntValueSet from selected offset. |
int |
ReadLONG()
Read LONG from current offset, and advance offset |
static int |
ReadLONG(byte[] buffer,
int off)
Read LONG from selected offset in given buffer. |
int |
ReadLONG(int off)
Read LONG from selected offset. |
long |
ReadLong64()
Read 64-bit long from current offset, and advance offset |
static long |
ReadLong64(byte[] buffer,
int off)
Read 64-bit long from selected offset in given buffer. |
long |
ReadLong64(int off)
Read 64-bit long from selected offset. |
static long[] |
ReadLong64Array(byte[] buffer,
int off,
int len)
Read 64-bit long array from selected offset in given buffer. |
long[] |
ReadLong64Array(int len)
Read 64-bit long array from current offset, and advance offset |
long[] |
ReadLong64Array(int off,
int len)
Read 64-bit long array from selected offset. |
static long[] |
ReadLong64LengthEncodedArray(byte[] buffer,
int off,
int len)
Read Long64 array in length-encoded format from selected offset in given buffer. |
long[] |
ReadLong64LengthEncodedArray(int len)
Read Long64 array in length-encoded format, and advance offset. |
long[] |
ReadLong64LengthEncodedArray(int off,
int len)
Read Long64 array in length-encoded format from selected offset. |
static int[] |
ReadLONGArray(byte[] buffer,
int off,
int len)
Read LONG array from selected offset in given buffer. |
int[] |
ReadLONGArray(int len)
Read LONG array from current offset, and advance offset |
int[] |
ReadLONGArray(int off,
int len)
Read LONG array from selected offset. |
static int[] |
ReadLONGLengthEncodedArray(byte[] buffer,
int off,
int len)
Read LONG array in length-encoded format from selected offset in given buffer. |
int[] |
ReadLONGLengthEncodedArray(int len)
Read LONG array in length-encoded format, and advance offset. |
int[] |
ReadLONGLengthEncodedArray(int off,
int len)
Read LONG array in length-encoded format from selected offset. |
LongValueSet |
ReadLongValueSet()
Read LongValueSet, and advance offset. |
static LongValueSet |
ReadLongValueSet(byte[] buffer,
int off)
Read LongValueSet from selected offset in given buffer. |
LongValueSet |
ReadLongValueSet(int off)
Read LongValueSet from selected offset. |
short |
ReadSHORT()
Read SHORT from current offset, and advance offset |
static short |
ReadSHORT(byte[] buffer,
int off)
Read SHORT from selected offset from given buffer. |
short |
ReadSHORT(int off)
Read SHORT from selected offset. |
static short[] |
ReadSHORTArray(byte[] buffer,
int off,
int len)
Read SHORT array from selected offset in given buffer. |
short[] |
ReadSHORTArray(int len)
Read SHORT array from current offset, and advance offset |
short[] |
ReadSHORTArray(int off,
int len)
Read SHORT array from selected offset. |
StringValueSet |
ReadStringValueSet()
Read StringValueSet, and advance offset. |
static StringValueSet |
ReadStringValueSet(byte[] buffer,
int off)
Read StringValueSet from selected offset in given buffer. |
StringValueSet |
ReadStringValueSet(int off)
Read StringValueSet from selected offset. |
short |
ReadUCHAR()
Read UCHAR from current offset, and advance offset |
static short |
ReadUCHAR(byte[] buffer,
int off)
Read UCHAR from selected offset in given buffer. |
short |
ReadUCHAR(int off)
Read UCHAR from selected offset. |
static int[] |
ReadUCHARArray(byte[] buffer,
int off,
int len)
Read UCHAR array from selected offset of given buffer |
int[] |
ReadUCHARArray(int len)
Read UCHAR array from current offset, and advance offset |
int[] |
ReadUCHARArray(int off,
int len)
Read UCHAR array from selected offset. |
long |
ReadULONG()
Read ULONG from current offset, and advance offset |
static long |
ReadULONG(byte[] buffer,
int off)
Read ULONG from selected offset in byte array. |
long |
ReadULONG(int off)
Read ULONG from selected offset. |
static long[] |
ReadULONGArray(byte[] buffer,
int off,
int len)
Read ULONG array from selected offset in given buffer. |
long[] |
ReadULONGArray(int len)
Read ULONG array from current offset, and advance offset |
long[] |
ReadULONGArray(int off,
int len)
Read ULONG array from selected offset. |
static long[] |
ReadULONGLengthEncodedArray(byte[] buffer,
int off,
int len)
Read ULONG array in length-encoded format from selected offset in given buffer. |
long[] |
ReadULONGLengthEncodedArray(int len)
Read ULONG array in length-encoded format, and advance offset. |
long[] |
ReadULONGLengthEncodedArray(int off,
int len)
Read ULONG array in length-encoded format from selected offset. |
int |
ReadUnicode()
Read unicode char from current offset, and advance offset |
static char |
ReadUnicode(byte[] buffer,
int off)
Read unicode char from selected offset in given buffer. |
char |
ReadUnicode(int off)
Read unicode char from selected offset. |
static char[] |
ReadUnicodeArray(byte[] buffer,
int off,
int len)
Read unicode char array from selected offset in given buffer. |
char[] |
ReadUnicodeArray(int len)
Read unicode char array from current offset, and advance offset |
char[] |
ReadUnicodeArray(int off,
int len)
Read unicode char array from selected offset. |
int |
ReadUSHORT()
Read USHORT from current offset, and advance offset |
static int |
ReadUSHORT(byte[] buffer,
int off)
Read USHORT from selected offset in given buffer. |
int |
ReadUSHORT(int off)
Read USHORT from selected offset. |
static int[] |
ReadUSHORTArray(byte[] buffer,
int off,
int len)
Read USHORT array from selected offset in given buffer. |
int[] |
ReadUSHORTArray(int len)
Read USHORT array from current offset, and advance offset |
int[] |
ReadUSHORTArray(int off,
int len)
Read USHORT array from selected offset. |
java.lang.String |
ReadUTF8()
Read UTF-8 encoded string at current offset, advance, return as String. |
static java.lang.String |
ReadUTF8(byte[] buf,
int off)
Read UTF-8 encoded string from given buffer |
void |
ResetStart(int s)
Reset start index and offset |
void |
ResizeBuffer(int newlen)
Resize byte buffer and preserve all remaining data. |
void |
SetBuffer(byte[] b)
Set byte buffer |
void |
SetOffset(int off)
Set current offset index (relative to start) |
void |
SetStart(int s)
Set start index |
void |
SkipASCIIZ()
Skip over ASCIIZ string at current offset, just advance offset. |
static int |
SkipASCIIZ(byte[] buffer,
int off)
Skip over ASCIIZ string at given offset in given buffer ASCIIZ strings are limited to character codes 0000-007f |
void |
SkipCompUnicode()
Skip over compressed unicode string at current offset, just advance offset. |
static int |
SkipCompUnicode(byte[] buffer,
int off)
Skip over compressed unicode string at given offset in given buffer, |
void |
SkipIntValueSet()
Skip over IntValueSet at current offset, just advance offset. |
static int |
SkipIntValueSet(byte[] buffer,
int off)
Skip over IntValueSet at given offset in given buffer, |
static int |
SkipLengthEncodedLong64Array(byte[] buffer,
int off,
int len)
Skip over length encoded Long64 array at given offset in given buffer, |
void |
SkipLengthEncodedLong64Array(int len)
Skip over length encoded Long64 array at current offset, just advance offset. |
static int |
SkipLengthEncodedLONGArray(byte[] buffer,
int off,
int len)
Skip over length encoded LONG array at given offset in given buffer, |
void |
SkipLengthEncodedLONGArray(int len)
Skip over length encoded LONG array at current offset, just advance offset. |
static int |
SkipLengthEncodedULONGArray(byte[] buffer,
int off,
int len)
Skip over length encoded ULONG array at given offset in given buffer, |
void |
SkipLengthEncodedULONGArray(int len)
Skip over length encoded ULONG array at current offset, just advance offset. |
void |
SkipLongValueSet()
Skip over LongValueSet at current offset, just advance offset. |
static int |
SkipLongValueSet(byte[] buffer,
int off)
Skip over LongValueSet at given offset in given buffer, |
void |
SkipStringValueSet()
Skip over StringValueSet at current offset, just advance offset. |
static int |
SkipStringValueSet(byte[] buffer,
int off)
Skip over StringValueSet at given offset in given buffer, |
void |
SkipUTF8()
Skip over UTF-8 encoded string at current offset, just advance offset. |
static int |
SkipUTF8(byte[] buf,
int off)
Skip over UTF-8 encoded string at given offset in given buffer |
void |
StepOffset(int s)
Step current offset index (relative to start) |
void |
StepStart(int s)
Step start index and reset offset |
static int |
WriteASCIIZ(byte[] buffer,
java.lang.String val,
int off)
Write string as ASCIIZ at selected offset in given buffer. |
int |
WriteASCIIZ(java.lang.String val)
Write string as ASCIIZ at current offset, and advance offset ASCIIZ strings are limited to character codes 0000-007f |
int |
WriteASCIIZ(java.lang.String val,
int off)
Write string as ASCIIZ at selected offset. |
static int |
WriteCHAR(byte[] buffer,
int val,
int off)
Write CHAR at selected offset in given buffer. |
int |
WriteCHAR(int val)
Write CHAR at current offset, and advance offset |
int |
WriteCHAR(int val,
int off)
Write CHAR at selected offset. |
int |
WriteCHARArray(byte[] val)
Write byte array at current offset, and advance offset |
static int |
WriteCHARArray(byte[] buffer,
byte[] val,
int off)
Write byte array at selected offset in given buffer. |
static int |
WriteCHARArray(byte[] buffer,
byte[] val,
int start,
int len,
int off)
Write byte array at selected offset in given buffer. |
int |
WriteCHARArray(byte[] val,
int off)
Write byte array at selected offset. |
int |
WriteCHARArray(byte[] val,
int source_off,
int len)
Write byte array of specified length at current offset and advance offset |
static int |
WriteCompUnicode(byte[] buffer,
java.lang.String val,
int off)
Write string as compressed unicode at selected offset in given buffer. |
int |
WriteCompUnicode(java.lang.String val)
Write string as compressed unicode at current offset, and advance offset |
int |
WriteCompUnicode(java.lang.String val,
int off)
Write string as compressed unicode at selected offset. |
static int |
WriteDouble(byte[] buffer,
double val,
int off)
Write double at selected offset in given buffer. |
int |
WriteDouble(double val)
Write double at current offset, and advance offset |
int |
WriteDouble(double val,
int off)
Write double at selected offset. |
static int |
WriteDoubleArray(byte[] buffer,
double[] val,
int off)
Write double array at selected offset in given array. |
static int |
WriteDoubleArray(byte[] buffer,
double[] val,
int start,
int len,
int off)
Write double array at selected offset in given buffer. |
int |
WriteDoubleArray(double[] val)
Write double long array at current offset, and advance offset |
int |
WriteDoubleArray(double[] val,
int off)
Write double array at selected offset. |
static int |
WriteFloat(byte[] buffer,
float val,
int off)
Write float at selected offset in given buffer. |
float |
WriteFloat(float val)
Write float at current offset, and advance offset |
int |
WriteFloat(float val,
int off)
Write float at selected offset. |
static int |
WriteFloatArray(byte[] buffer,
float[] val,
int off)
Write float array at selected offset in given array. |
static int |
WriteFloatArray(byte[] buffer,
float[] val,
int start,
int len,
int off)
Write float array at selected offset in given buffer. |
int |
WriteFloatArray(float[] val)
Write float array at current offset, and advance offset |
int |
WriteFloatArray(float[] val,
int off)
Write float array at selected offset. |
static int |
WriteIntValueSet(byte[] buffer,
IntValueSet valset,
int off)
Write IntValueSet at selected offset in given buffer. |
int |
WriteIntValueSet(IntValueSet val)
Write IntValueSet at current offset, and advance. |
int |
WriteIntValueSet(IntValueSet val,
int off)
Write IntValueSet at selected offset. |
static int |
WriteLONG(byte[] buffer,
int val,
int off)
Write LONG at selected offset in given buffer. |
int |
WriteLONG(int val)
Write LONG at current offset, and advance offset |
int |
WriteLONG(int val,
int off)
Write LONG at selected offset. |
static int |
WriteLong64(byte[] buffer,
long val,
int off)
Write 64-bit long at selected offset in given buffer. |
int |
WriteLong64(long val)
Write 64-bit long at current offset, and advance offset |
int |
WriteLong64(long val,
int off)
Write 64-bit long at selected offset. |
static int |
WriteLong64Array(byte[] buffer,
long[] val,
int off)
Write 64-bit long array at selected offset in given array. |
static int |
WriteLong64Array(byte[] buffer,
long[] val,
int start,
int len,
int off)
Write LONG array at selected offset in given buffer. |
int |
WriteLong64Array(long[] val)
Write 64-bit long array at current offset, and advance offset |
int |
WriteLong64Array(long[] val,
int off)
Write 64-bit long array at selected offset. |
static int |
WriteLong64ArrayLengthEncoded(byte[] buffer,
long[] val,
int off)
Write Long64 array length encoded at selected offset in given buffer. |
static int |
WriteLong64ArrayLengthEncoded(byte[] buffer,
long[] val,
int start,
int len,
int off)
Write Long64 array length encoded at selected offset in given buffer. |
int |
WriteLong64ArrayLengthEncoded(long[] val)
Write Long64 array length encoded at current offset, and advance. |
int |
WriteLong64ArrayLengthEncoded(long[] val,
int off)
Write Long64 array length encoded at selected offset. |
static int |
WriteLONGArray(byte[] buffer,
int[] val,
int off)
Write LONG array at selected offset in given array. |
static int |
WriteLONGArray(byte[] buffer,
int[] val,
int start,
int len,
int off)
Write LONG array at selected offset in given buffer. |
int |
WriteLONGArray(int[] val)
Write LONG array at current offset, and advance offset |
int |
WriteLONGArray(int[] val,
int off)
Write LONG array at selected offset. |
static int |
WriteLONGArrayLengthEncoded(byte[] buffer,
int[] val,
int off)
Write LONG array length encoded at selected offset in given buffer. |
static int |
WriteLONGArrayLengthEncoded(byte[] buffer,
int[] val,
int start,
int len,
int off)
Write LONG array length encoded at selected offset in given buffer. |
int |
WriteLONGArrayLengthEncoded(int[] val)
Write LONG array length encoded at current offset, and advance. |
int |
WriteLONGArrayLengthEncoded(int[] val,
int off)
Write LONG array length encoded at selected offset. |
static int |
WriteLongValueSet(byte[] buffer,
LongValueSet valset,
int off)
Write LongValueSet at selected offset in given buffer. |
int |
WriteLongValueSet(LongValueSet val)
Write LongValueSet at current offset, and advance. |
int |
WriteLongValueSet(LongValueSet val,
int off)
Write LongValueSet at selected offset. |
static int |
WriteSHORT(byte[] buffer,
int val,
int off)
Write SHORT at selected offset in given buffer. |
int |
WriteSHORT(int val)
Write SHORT at current offset, and advance offset |
int |
WriteSHORT(int val,
int off)
Write SHORT at selected offset. |
static int |
WriteSHORTArray(byte[] buffer,
short[] val,
int off)
Write SHORT array at selected offset in given buffer. |
static int |
WriteSHORTArray(byte[] buffer,
short[] val,
int start,
int len,
int off)
Write short array at selected offset in given buffer. |
int |
WriteSHORTArray(short[] val)
Write SHORT at current offset, and advance offset |
int |
WriteSHORTArray(short[] val,
int off)
Write SHORT array at selected offset. |
static int |
WriteStringValueSet(byte[] buffer,
StringValueSet valset,
int off)
Write StringValueSet at selected offset in given buffer. |
int |
WriteStringValueSet(StringValueSet val)
Write StringValueSet at current offset, and advance. |
int |
WriteStringValueSet(StringValueSet val,
int off)
Write StringValueSet at selected offset. |
static int |
WriteUCHAR(byte[] buffer,
int val,
int off)
Write UCHAR at selected offset in given buffer. |
int |
WriteUCHAR(int val)
Write UCHAR at current offset, and advance offset |
int |
WriteUCHAR(int val,
int off)
Write UCHAR at selected offset. |
static int |
WriteUCHARArray(byte[] buffer,
int[] val,
int off)
Write UCHAR array at selected offset in given buffer. |
static int |
WriteUCHARArray(byte[] buffer,
int[] val,
int start,
int len,
int off)
Write byte array at selected offset in given buffer. |
int |
WriteUCHARArray(int[] val)
Write UCHAR array at current offset, and advance offset |
int |
WriteUCHARArray(int[] val,
int off)
Write UCHAR array at selected offset. |
static int |
WriteULONG(byte[] buffer,
long val,
int off)
Write ULONG at selected offset in given buffer. |
int |
WriteULONG(long val)
Write ULONG at current offset, and advance offset |
int |
WriteULONG(long val,
int off)
Write ULONG at selected offset. |
static int |
WriteULONGArray(byte[] buffer,
long[] val,
int off)
Write ULONG array at selected offset in given buffer. |
static int |
WriteULONGArray(byte[] buffer,
long[] val,
int start,
int len,
int off)
Write long array at selected offset in given buffer. |
int |
WriteULONGArray(long[] val)
Write ULONG array at current offset, and advance offset |
int |
WriteULONGArray(long[] val,
int off)
Write ULONG array at selected offset. |
static int |
WriteULONGArrayLengthEncoded(byte[] buffer,
long[] val,
int off)
Write ULONG array length encoded at selected offset in given buffer. |
static int |
WriteULONGArrayLengthEncoded(byte[] buffer,
long[] val,
int start,
int len,
int off)
Write ULONG array length encoded at selected offset in given buffer. |
int |
WriteULONGArrayLengthEncoded(long[] val)
Write ULONG array length encoded at current offset, and advance. |
int |
WriteULONGArrayLengthEncoded(long[] val,
int off)
Write ULONG array length encoded at selected offset. |
static int |
WriteUnicode(byte[] buffer,
char val,
int off)
Write unicode char at selected offset in given buffer. |
int |
WriteUnicode(char val)
Write unicode char at current offset, and advance offset |
int |
WriteUnicode(char val,
int off)
Write unicode char at selected offset. |
static int |
WriteUnicodeArray(byte[] buffer,
char[] val,
int off)
Write unicode array at selected offset in given buffer. |
static int |
WriteUnicodeArray(byte[] buffer,
char[] val,
int start,
int len,
int off)
Write char array at selected offset in given buffer. |
int |
WriteUnicodeArray(char[] val)
Write unicode char array at current offset, and advance offset |
int |
WriteUnicodeArray(char[] val,
int off)
Write unicode char array at selected offset. |
static int |
WriteUSHORT(byte[] buffer,
int val,
int off)
Write USHORT at selected offset in given buffer. |
int |
WriteUSHORT(int val)
Write USHORT at current offset, and advance offset |
int |
WriteUSHORT(int val,
int off)
Write USHORT at selected offset. |
static int |
WriteUSHORTArray(byte[] buffer,
int[] val,
int off)
Write USHORT array at selected offset in given buffer. |
static int |
WriteUSHORTArray(byte[] buffer,
int[] val,
int start,
int len,
int off)
Write int array at selected offset in given buffer. |
int |
WriteUSHORTArray(int[] val)
Write USHORT array at current offset, and advance offset |
int |
WriteUSHORTArray(int[] val,
int off)
Write USHORT array at selected offset. |
static int |
WriteUTF8(byte[] buf,
java.lang.String s,
int off)
Write string to buffer in UTF-8 encoded format |
int |
WriteUTF8(java.lang.String s)
Write string to buffer in UTF-8 encoded format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SIZEOF_LONG64
public static final int SIZEOF_DOUBLE
public static final int SIZEOF_FLOAT
public static final int SIZEOF_ULONG
public static final int SIZEOF_LONG
public static final int SIZEOF_USHORT
public static final int SIZEOF_UNICODE
public static final int SIZEOF_SHORT
public static final int SIZEOF_UCHAR
public static final int SIZEOF_CHAR
Constructor Detail |
public IntelByteBuffer(byte[] inbuf)
inbuf
- input byte array to be interpretedpublic IntelByteBuffer(byte[] inbuf, int start_off)
inbuf
- input byte array to be interpretedstart_off
- offset in byte array of start of structurepublic IntelByteBuffer(int buflen)
buflen
- Length of byte array to be createdMethod Detail |
public final void SetOffset(int off)
off
- new offset indexpublic final void StepOffset(int s)
s
- value to add to offset indexpublic final int GetOffset()
public final void SetStart(int s)
s
- new start indexpublic final void StepStart(int s)
s
- value to add to start indexpublic final void ResetStart(int s)
s
- value to reset start index topublic final int GetStart()
public final byte[] GetBuffer()
public final void SetBuffer(byte[] b)
public final void ResizeBuffer(int newlen)
newlen
- - new length of bufferpublic static final long ReadULONG(byte[] buffer, int off)
buffer
- - byte array to be readoff
- - offset within buffer to read from
public final long ReadULONG(int off)
off
- - offset relative to buffer start
public final long ReadULONG()
public static final int WriteULONG(byte[] buffer, long val, int off)
buffer
- - buffer to be written toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteULONG(long val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteULONG(long val)
val
- value to be writtenpublic static final int ReadUSHORT(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final int ReadUSHORT(int off)
off
- offset relative to buffer startpublic final int ReadUSHORT()
public static final int WriteUSHORT(byte[] buffer, int val, int off)
buffer
- - buffer to be written toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteUSHORT(int val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteUSHORT(int val)
val
- value to be writtenpublic static final char ReadUnicode(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final char ReadUnicode(int off)
off
- offset relative to buffer startpublic final int ReadUnicode()
public static final int WriteUnicode(byte[] buffer, char val, int off)
buffer
- - buffer to be written toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteUnicode(char val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteUnicode(char val)
val
- value to be writtenpublic static final short ReadUCHAR(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final short ReadUCHAR(int off)
off
- offset relative to buffer startpublic final short ReadUCHAR()
public static final int WriteUCHAR(byte[] buffer, int val, int off)
buffer
- - array to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteUCHAR(int val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteUCHAR(int val)
val
- value to be writtenpublic static final int ReadLONG(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final int ReadLONG(int off)
off
- offset relative to buffer startpublic final int ReadLONG()
public static final int WriteLONG(byte[] buffer, int val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteLONG(int val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteLONG(int val)
val
- value to be writtenpublic static final float ReadFloat(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final float ReadFloat(int off)
off
- offset relative to buffer startpublic final float ReadFloat()
public static final int WriteFloat(byte[] buffer, float val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteFloat(float val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final float WriteFloat(float val)
val
- value to be writtenpublic static final long ReadLong64(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer start
public final long ReadLong64(int off)
off
- offset relative to buffer start
public final long ReadLong64()
public static final int WriteLong64(byte[] buffer, long val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteLong64(long val, int off)
val
- value to be writtenoff
- offset relative to buffer start
public final int WriteLong64(long val)
val
- value to be written
public static final double ReadDouble(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer start
public final double ReadDouble(int off)
off
- offset relative to buffer start
public final double ReadDouble()
public static final int WriteDouble(byte[] buffer, double val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteDouble(double val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteDouble(double val)
val
- value to be writtenpublic static final short ReadSHORT(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final short ReadSHORT(int off)
off
- offset relative to buffer startpublic final short ReadSHORT()
public static final int WriteSHORT(byte[] buffer, int val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteSHORT(int val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteSHORT(int val)
val
- value to be writtenpublic static final byte ReadCHAR(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final byte ReadCHAR(int off)
off
- offset relative to buffer startpublic final byte ReadCHAR()
public static final int WriteCHAR(byte[] buffer, int val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public final int WriteCHAR(int val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteCHAR(int val)
val
- value to be writtenpublic static final java.lang.String ReadASCIIZ(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer startpublic final java.lang.String ReadASCIIZ(int off)
off
- offset relative to buffer startpublic final java.lang.String ReadASCIIZ()
public static final int SkipASCIIZ(byte[] buffer, int off)
buffer
- - buffer to be read fromoff
- - offset for start of read
public final void SkipASCIIZ()
public static final int WriteASCIIZ(byte[] buffer, java.lang.String val, int off)
buffer
- - buffer to write toval
- - String value to be writtenoff
- - offset relative to buffer start
public final int WriteASCIIZ(java.lang.String val, int off)
val
- String value to be writtenoff
- offset relative to buffer startpublic final int WriteASCIIZ(java.lang.String val)
val
- String value to be writtenpublic static final int GetASCIIZLength(java.lang.String val)
val
- String value to be checkedpublic static final java.lang.String ReadCompUnicode(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer start
public final java.lang.String ReadCompUnicode(int off)
off
- offset relative to buffer startpublic final java.lang.String ReadCompUnicode()
public static final int SkipCompUnicode(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset to start skipping from
public final void SkipCompUnicode()
public static final int WriteCompUnicode(byte[] buffer, java.lang.String val, int off)
buffer
- - buffer to write intoval
- - String value to be writtenoff
- - offset relative to buffer start
public final int WriteCompUnicode(java.lang.String val, int off)
val
- String value to be writtenoff
- offset relative to buffer start
public final int WriteCompUnicode(java.lang.String val)
val
- String value to be writtenpublic static final int GetCompUnicodeLength(java.lang.String val)
val
- String value to be checkedpublic static final byte[] ReadCHARArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of byte array to read
public final byte[] ReadCHARArray(int off, int len)
off
- offset relative to buffer startlen
- length of byte array to readpublic final byte[] ReadCHARArray(int len)
len
- length of byte array to readpublic static final int WriteCHARArray(byte[] buffer, byte[] val, int off)
buffer
- - buffer to write toval
- value to be writtenoff
- offset relative to buffer start
public static final int WriteCHARArray(byte[] buffer, byte[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteCHARArray(byte[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteCHARArray(byte[] val)
val
- value to be writtenpublic final int WriteCHARArray(byte[] val, int source_off, int len)
val
- buffer containing source valuelen
- length to copy from val bufferpublic static final int[] ReadUCHARArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- offset relative to buffer startlen
- length of UCHAR array to read
public final int[] ReadUCHARArray(int off, int len)
off
- offset relative to buffer startlen
- length of UCHAR array to readpublic final int[] ReadUCHARArray(int len)
len
- length of byte array to readpublic static final int WriteUCHARArray(byte[] buffer, int[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteUCHARArray(byte[] buffer, int[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteUCHARArray(int[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteUCHARArray(int[] val)
val
- value to be writtenpublic static final int[] ReadUSHORTArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of USHORT array to read
public final int[] ReadUSHORTArray(int off, int len)
off
- offset relative to buffer startlen
- length of USHORT array to read
public final int[] ReadUSHORTArray(int len)
len
- length of USHORT array to read
public static final int WriteUSHORTArray(byte[] buffer, int[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteUSHORTArray(byte[] buffer, int[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteUSHORTArray(int[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteUSHORTArray(int[] val)
val
- value to be writtenpublic static final char[] ReadUnicodeArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of unicode array to read
public final char[] ReadUnicodeArray(int off, int len)
off
- offset relative to buffer startlen
- length of unicode array to read
public final char[] ReadUnicodeArray(int len)
len
- length of unicode array to read
public static final int WriteUnicodeArray(byte[] buffer, char[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteUnicodeArray(byte[] buffer, char[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteUnicodeArray(char[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteUnicodeArray(char[] val)
val
- value to be writtenpublic static final short[] ReadSHORTArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of SHORT array to read
public final short[] ReadSHORTArray(int off, int len)
off
- offset relative to buffer startlen
- length of SHORT array to read
public final short[] ReadSHORTArray(int len)
len
- length of SHORT array to read
public static final int WriteSHORTArray(byte[] buffer, short[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteSHORTArray(byte[] buffer, short[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteSHORTArray(short[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteSHORTArray(short[] val)
val
- value to be writtenpublic static final long[] ReadULONGArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of ULONG array to read
public final long[] ReadULONGArray(int off, int len)
off
- offset relative to buffer startlen
- length of ULONG array to read
public final long[] ReadULONGArray(int len)
len
- length of ULONG array to read
public static final int WriteULONGArray(byte[] buffer, long[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteULONGArray(byte[] buffer, long[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteULONGArray(long[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteULONGArray(long[] val)
val
- value to be writtenpublic static final int[] ReadLONGArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of LONG array
public final int[] ReadLONGArray(int off, int len)
off
- offset relative to buffer startlen
- length of LONG arraypublic final int[] ReadLONGArray(int len)
len
- length of LONG arraypublic static final int WriteLONGArray(byte[] buffer, int[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteLONGArray(byte[] buffer, int[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteLONGArray(int[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteLONGArray(int[] val)
val
- value to be writtenpublic static final long[] ReadLong64Array(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of 64-bit long array
public final long[] ReadLong64Array(int off, int len)
off
- offset relative to buffer startlen
- length of 64-bit long array
public final long[] ReadLong64Array(int len)
len
- length of 64-bit long arraypublic static final int WriteLong64Array(byte[] buffer, long[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteLong64Array(byte[] buffer, long[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteLong64Array(long[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteLong64Array(long[] val)
val
- value to be writtenpublic static final float[] ReadFloatArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of float array
public final float[] ReadFloatArray(int off, int len)
off
- offset relative to buffer startlen
- length of float arraypublic final float[] ReadFloatArray(int len)
len
- length of float arraypublic static final int WriteFloatArray(byte[] buffer, float[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteFloatArray(byte[] buffer, float[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteFloatArray(float[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteFloatArray(float[] val)
val
- value to be writtenpublic static final double[] ReadDoubleArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of double array
public final double[] ReadDoubleArray(int off, int len)
off
- offset relative to buffer startlen
- length of double array
public final double[] ReadDoubleArray(int len)
len
- length of double arraypublic static final int WriteDoubleArray(byte[] buffer, double[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteDoubleArray(byte[] buffer, double[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteDoubleArray(double[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteDoubleArray(double[] val)
val
- value to be writtenpublic static final long[] ReadULONGLengthEncodedArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of ULONG array to read
public final long[] ReadULONGLengthEncodedArray(int off, int len)
off
- offset relative to buffer startlen
- length of ULONG array to read
public final long[] ReadULONGLengthEncodedArray(int len)
len
- length of ULONG array to read
public static final int WriteULONGArrayLengthEncoded(byte[] buffer, long[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteULONGArrayLengthEncoded(byte[] buffer, long[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteULONGArrayLengthEncoded(long[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteULONGArrayLengthEncoded(long[] val)
val
- value to be writtenpublic static final int SkipLengthEncodedULONGArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset to start skipping fromlen
- - number of elements in length encoded array
public final void SkipLengthEncodedULONGArray(int len)
len
- - number of elements in length encoded arraypublic static final int GetLengthEncodedULONGArrayLength(long[] val, int start, int len)
val
- - array of valuesstart
- - starting index in values arraylen
- - length of range in values array
public static final int[] ReadLONGLengthEncodedArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of LONG array to read
public final int[] ReadLONGLengthEncodedArray(int off, int len)
off
- offset relative to buffer startlen
- length of LONG array to read
public final int[] ReadLONGLengthEncodedArray(int len)
len
- length of LONG array to read
public static final int WriteLONGArrayLengthEncoded(byte[] buffer, int[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteLONGArrayLengthEncoded(byte[] buffer, int[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteLONGArrayLengthEncoded(int[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteLONGArrayLengthEncoded(int[] val)
val
- value to be writtenpublic static final int SkipLengthEncodedLONGArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset to start skipping fromlen
- - number of elements in length encoded array
public final void SkipLengthEncodedLONGArray(int len)
len
- - number of elements in length encoded arraypublic static final int GetLengthEncodedLONGArrayLength(int[] val, int start, int len)
val
- - array of valuesstart
- - starting index in values arraylen
- - length of range in values array
public static final long[] ReadLong64LengthEncodedArray(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset relative to buffer startlen
- - length of Long64 array to read
public final long[] ReadLong64LengthEncodedArray(int off, int len)
off
- offset relative to buffer startlen
- length of Long64 array to read
public final long[] ReadLong64LengthEncodedArray(int len)
len
- length of LONG array to read
public static final int WriteLong64ArrayLengthEncoded(byte[] buffer, long[] val, int off)
buffer
- - buffer to write toval
- - value to be writtenoff
- - offset relative to buffer start
public static final int WriteLong64ArrayLengthEncoded(byte[] buffer, long[] val, int start, int len, int off)
buffer
- - buffer to write toval
- array containing values to be writtenstart
- index in val of start of dataoff
- offset relative to buffer start
public final int WriteLong64ArrayLengthEncoded(long[] val, int off)
val
- value to be writtenoff
- offset relative to buffer startpublic final int WriteLong64ArrayLengthEncoded(long[] val)
val
- value to be writtenpublic static final int SkipLengthEncodedLong64Array(byte[] buffer, int off, int len)
buffer
- - buffer to read fromoff
- - offset to start skipping fromlen
- - number of elements in length encoded array
public final void SkipLengthEncodedLong64Array(int len)
len
- - number of elements in length encoded arraypublic static final int GetLengthEncodedLong64ArrayLength(long[] val, int start, int len)
val
- - array of valuesstart
- - starting index in values arraylen
- - length of range in values array
public static final LongValueSet ReadLongValueSet(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer start
public final LongValueSet ReadLongValueSet(int off)
off
- offset relative to buffer start
public final LongValueSet ReadLongValueSet()
public static final int WriteLongValueSet(byte[] buffer, LongValueSet valset, int off)
buffer
- - buffer to write tooff
- - offset relative to buffer start
public final int WriteLongValueSet(LongValueSet val, int off)
val
- - LongValueSet to be writtenoff
- - offset relative to buffer startpublic final int WriteLongValueSet(LongValueSet val)
val
- - LongValueSet to be writtenpublic static final int SkipLongValueSet(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset to start skipping from
public final void SkipLongValueSet()
public static final int GetLongValueSetLength(LongValueSet valset)
public static final IntValueSet ReadIntValueSet(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer start
public final IntValueSet ReadIntValueSet(int off)
off
- offset relative to buffer start
public final IntValueSet ReadIntValueSet()
public static final int WriteIntValueSet(byte[] buffer, IntValueSet valset, int off)
buffer
- - buffer to write tooff
- - offset relative to buffer start
public final int WriteIntValueSet(IntValueSet val, int off)
val
- - IntValueSet to be writtenoff
- - offset relative to buffer startpublic final int WriteIntValueSet(IntValueSet val)
val
- - IntValueSet to be writtenpublic static final int SkipIntValueSet(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset to start skipping from
public final void SkipIntValueSet()
public static final int GetIntValueSetLength(IntValueSet valset)
public static final StringValueSet ReadStringValueSet(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset relative to buffer start
public final StringValueSet ReadStringValueSet(int off)
off
- offset relative to buffer start
public final StringValueSet ReadStringValueSet()
public static final int WriteStringValueSet(byte[] buffer, StringValueSet valset, int off)
buffer
- - buffer to write tooff
- - offset relative to buffer start
public final int WriteStringValueSet(StringValueSet val, int off)
val
- - StringValueSet to be writtenoff
- - offset relative to buffer startpublic final int WriteStringValueSet(StringValueSet val)
val
- - StringValueSet to be writtenpublic static final int SkipStringValueSet(byte[] buffer, int off)
buffer
- - buffer to read fromoff
- - offset to start skipping from
public final void SkipStringValueSet()
public static final int GetStringValueSetLength(StringValueSet valset)
public static final byte[] GetUTF8(java.lang.String s)
s
- - string to be encoded
public static final int WriteUTF8(byte[] buf, java.lang.String s, int off)
buf
- - buffers
- - string to be writtenoff
- - offset to write within buffer
public final int WriteUTF8(java.lang.String s)
s
- - string to be written
public static final int GetUTF8Length(java.lang.String s)
s
- - string to be encoded
public static final java.lang.String ReadUTF8(byte[] buf, int off)
buf
- - buffer to be readoff
- - offset to start reading
public final java.lang.String ReadUTF8()
public final void SkipUTF8()
public static final int SkipUTF8(byte[] buf, int off)
off
- - offset to start skipping from
public static final int GetEncodedUTF8Length(byte[] buf, int off)
buf
- - buffer to be readoff
- - offset of encoded string
public static java.lang.String BytesToString(byte[] buffer, int start, int len)
buffer
- - buffer containing bytesstart
- - offset of first byte to convertlen
- - number of bytes to be converted
public static java.lang.String BytesToString(byte[] buffer)
buffer
- - buffer containing bytes
public static void printBytes(byte[] buf, int begin, int len)
buf
- - buffer to be printedbegin
- - index to startlen
- - length to printpublic static void printBytes(byte[] buf)
buf
- - buffer to be printed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |