|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.FsUtils
Utility class for converting numbers from on-disk format.
| Field Summary | |
static boolean |
bigEndian
Controls endian-ness. |
| Constructor Summary | |
FsUtils()
|
|
| Method Summary | |
static int |
getS16(byte[] buffer,
int offset)
Read a 16 bit signed number off the disk. |
static long |
getS32(byte[] buffer,
int offset)
Read a 32 bit signed number off the disk. |
static long |
getS64(byte[] buffer,
int offset)
This is the same as getU64(). |
static int |
getU16(byte[] buffer,
int offset)
Read a 16 bit unsigned number off the disk. |
static long |
getU32(byte[] buffer,
int offset)
Read a 32 bit unsigned number off the disk. |
static long |
getU64(byte[] buffer,
int offset)
Read a 64 bit unsigned number off the disk. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean bigEndian
| Constructor Detail |
public FsUtils()
| Method Detail |
public static long getU64(byte[] buffer,
int offset)
buffer - a byte[] containing the dataoffset - a int offset into the buffer
public static long getS64(byte[] buffer,
int offset)
buffer - a byte[] containing the dataoffset - a int offset into the buffer
getU64(byte[],int)
public static long getU32(byte[] buffer,
int offset)
buffer - a byte[] containing the dataoffset - a int offset into the buffer
public static long getS32(byte[] buffer,
int offset)
buffer - a byte[] containing the dataoffset - a int offset into the buffer
public static int getU16(byte[] buffer,
int offset)
buffer - a byte[] containing the dataoffset - a int offset into the buffer
public static int getS16(byte[] buffer,
int offset)
buffer - a byte[] containing the dataoffset - a int offset into the buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||