|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.io.UnsignedNumeric
public class UnsignedNumeric
Helper to read and write unsigned numerics
Constructor Summary | |
---|---|
UnsignedNumeric()
|
Method Summary | |
---|---|
static int |
readUnsignedInt(byte[] bytes,
int offset)
Reads an int stored in variable-length format. |
static int |
readUnsignedInt(ObjectInput in)
Reads an int stored in variable-length format. |
static long |
readUnsignedLong(byte[] bytes,
int offset)
Reads an int stored in variable-length format. |
static long |
readUnsignedLong(ObjectInput in)
Reads an int stored in variable-length format. |
static void |
writeUnsignedInt(byte[] bytes,
int offset,
int i)
Writes an int in a variable-length format. |
static void |
writeUnsignedInt(ObjectOutput out,
int i)
Writes an int in a variable-length format. |
static void |
writeUnsignedLong(byte[] bytes,
int offset,
long i)
Writes an int in a variable-length format. |
static void |
writeUnsignedLong(ObjectOutput out,
long i)
Writes an int in a variable-length format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnsignedNumeric()
Method Detail |
---|
public static int readUnsignedInt(ObjectInput in) throws IOException
IOException
public static void writeUnsignedInt(ObjectOutput out, int i) throws IOException
i
- int to write
IOException
public static long readUnsignedLong(ObjectInput in) throws IOException
IOException
public static void writeUnsignedLong(ObjectOutput out, long i) throws IOException
i
- int to write
IOException
public static int readUnsignedInt(byte[] bytes, int offset) throws IOException
IOException
public static void writeUnsignedInt(byte[] bytes, int offset, int i) throws IOException
i
- int to write
IOException
public static long readUnsignedLong(byte[] bytes, int offset) throws IOException
IOException
public static void writeUnsignedLong(byte[] bytes, int offset, long i) throws IOException
i
- int to write
IOException
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |