public class UnsignedNumeric extends Object
Constructor and Description |
---|
UnsignedNumeric() |
Modifier and Type | Method and Description |
---|---|
static int |
readUnsignedInt(byte[] bytes,
int offset)
Reads an int stored in variable-length format.
|
static int |
readUnsignedInt(ByteBuffer in) |
static int |
readUnsignedInt(InputStream in) |
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(ByteBuffer in) |
static long |
readUnsignedLong(InputStream in) |
static long |
readUnsignedLong(ObjectInput in)
Reads an int stored in variable-length format.
|
static byte |
sizeUnsignedInt(int i) |
static void |
writeUnsignedInt(byte[] bytes,
int offset,
int i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedInt(ByteBuffer out,
int i) |
static void |
writeUnsignedInt(ObjectOutput out,
int i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedInt(OutputStream out,
int i) |
static void |
writeUnsignedLong(byte[] bytes,
int offset,
long i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedLong(ByteBuffer out,
long i) |
static void |
writeUnsignedLong(ObjectOutput out,
long i)
Writes an int in a variable-length format.
|
static void |
writeUnsignedLong(OutputStream out,
long i) |
public static int readUnsignedInt(ObjectInput in)
public static int readUnsignedInt(InputStream in)
public static int readUnsignedInt(ByteBuffer in)
public static void writeUnsignedInt(ObjectOutput out, int i)
i
- int to writepublic static void writeUnsignedInt(OutputStream out, int i)
public static byte sizeUnsignedInt(int i)
public static void writeUnsignedInt(ByteBuffer out, int i)
public static long readUnsignedLong(ObjectInput in)
public static long readUnsignedLong(InputStream in)
public static long readUnsignedLong(ByteBuffer in)
public static void writeUnsignedLong(ObjectOutput out, long i)
i
- int to writepublic static void writeUnsignedLong(OutputStream out, long i)
public static void writeUnsignedLong(ByteBuffer out, long i)
public static int readUnsignedInt(byte[] bytes, int offset)
public static void writeUnsignedInt(byte[] bytes, int offset, int i)
i
- int to writepublic static long readUnsignedLong(byte[] bytes, int offset)
public static void writeUnsignedLong(byte[] bytes, int offset, long i)
i
- int to writeCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.