|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nwnintf.format.Prim
Provide static methods for decoding types from bytes.
Constructor Summary | |
Prim()
|
Method Summary | |
static int |
int32lsb(byte[] bytes,
int offset)
|
static int |
int32lsb(byte b1,
byte b2,
byte b3,
byte b4)
|
static int |
int32lsb(java.io.RandomAccessFile f)
|
static long |
int64lsb(byte[] bytes,
int offset)
|
static void |
main(java.lang.String[] args)
|
static java.lang.String |
string(byte[] bytes,
int offset,
int length)
|
static java.lang.String |
string(java.io.RandomAccessFile f,
int length)
|
static java.lang.String |
string0(byte[] bytes,
int offset,
int length)
Return a string of a given length, but stopping at null character. |
static java.lang.String |
string0(java.io.RandomAccessFile f,
int length)
Read length bytes but return value stops at null byte. |
static int |
uint16lsb(byte[] bytes,
int offset)
This returns int so that it can encompass the whole range of uint16. |
static int |
uint8(byte[] bytes,
int offset)
This returns int so that it can encompass the whole range of uint8. |
static void |
writeBytes0(java.io.RandomAccessFile f,
java.lang.String x,
int len)
|
static void |
writeIntLSB(java.io.RandomAccessFile f,
int x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Prim()
Method Detail |
public static int int32lsb(byte b1, byte b2, byte b3, byte b4)
public static int int32lsb(byte[] bytes, int offset)
public static long int64lsb(byte[] bytes, int offset)
public static int uint8(byte[] bytes, int offset)
public static int uint16lsb(byte[] bytes, int offset)
public static java.lang.String string0(byte[] bytes, int offset, int length)
public static java.lang.String string(byte[] bytes, int offset, int length)
public static void main(java.lang.String[] args)
public static java.lang.String string(java.io.RandomAccessFile f, int length) throws java.io.IOException
java.io.IOException
public static java.lang.String string0(java.io.RandomAccessFile f, int length) throws java.io.IOException
java.io.IOException
public static int int32lsb(java.io.RandomAccessFile f) throws java.io.IOException
java.io.IOException
public static void writeIntLSB(java.io.RandomAccessFile f, int x) throws java.io.IOException
java.io.IOException
public static void writeBytes0(java.io.RandomAccessFile f, java.lang.String x, int len) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |