public class Unsigned extends Object
Constructor and Description |
---|
Unsigned() |
Modifier and Type | Method and Description |
---|---|
static short |
getUnsignedByte(ByteBuffer bb)
Get an unsigned byte from the current position of the ByteBuffer
|
static short |
getUnsignedByte(ByteBuffer bb,
int offset)
Get an unsigned byte from the specified offset in the ByteBuffer
|
static long |
getUnsignedInt(ByteBuffer bb)
Get an unsigned int from the current position of the ByteBuffer
|
static long |
getUnsignedInt(ByteBuffer bb,
int offset)
Get an unsigned int from the specified offset in the ByteBuffer
|
static BigInteger |
getUnsignedLong(ByteBuffer bb)
Get an unsigned long from the current position of the ByteBuffer
|
static BigInteger |
getUnsignedLong(ByteBuffer bb,
int offset)
Get an unsigned long from the specified offset in the ByteBuffer
|
static int |
getUnsignedShort(ByteBuffer bb)
Get an unsigned short from the current position of the ByteBuffer
|
static int |
getUnsignedShort(ByteBuffer bb,
int offset)
Get an unsigned short from the specified offset in the ByteBuffer
|
static void |
putUnsignedByte(ByteBuffer bb,
short v)
Put an unsigned byte into the specified ByteBuffer at the current
position
|
static void |
putUnsignedByte(ByteBuffer bb,
short v,
int offset)
Put an unsigned byte into the specified ByteBuffer at the specified
offset
|
static void |
putUnsignedInt(ByteBuffer bb,
long v)
Put an unsigned int into the specified ByteBuffer at the current position
|
static void |
putUnsignedInt(ByteBuffer bb,
long v,
int offset)
Put an unsigned int into the specified ByteBuffer at the specified offset
|
static void |
putUnsignedLong(ByteBuffer bb,
BigInteger v)
Put an unsigned long into the specified ByteBuffer at the current
position
|
static void |
putUnsignedLong(ByteBuffer bb,
BigInteger v,
int offset)
Put an unsigned long into the specified ByteBuffer at the specified
offset
|
static void |
putUnsignedShort(ByteBuffer bb,
int v)
Put an unsigned short into the specified ByteBuffer at the current
position
|
static void |
putUnsignedShort(ByteBuffer bb,
int v,
int offset)
Put an unsigned short into the specified ByteBuffer at the specified
offset
|
public static short getUnsignedByte(ByteBuffer bb)
bb
- ByteBuffer to get the byte frompublic static short getUnsignedByte(ByteBuffer bb, int offset)
bb
- ByteBuffer to get the byte fromoffset
- the offset to get the byte frompublic static void putUnsignedByte(ByteBuffer bb, short v)
bb
- ByteBuffer to put the byte intov
- the short containing the unsigned bytepublic static void putUnsignedByte(ByteBuffer bb, short v, int offset)
bb
- ByteBuffer to put the byte intov
- the short containing the unsigned byteoffset
- the offset to insert the unsigned byte atpublic static int getUnsignedShort(ByteBuffer bb)
bb
- ByteBuffer to get the byte frompublic static int getUnsignedShort(ByteBuffer bb, int offset)
bb
- ByteBuffer to get the short fromoffset
- the offset to get the short frompublic static void putUnsignedShort(ByteBuffer bb, int v)
bb
- ByteBuffer to put the short intov
- the int containing the unsigned shortpublic static void putUnsignedShort(ByteBuffer bb, int v, int offset)
bb
- ByteBuffer to put the short intov
- the int containing the unsigned shortoffset
- the offset to insert the unsigned short atpublic static long getUnsignedInt(ByteBuffer bb)
bb
- ByteBuffer to get the int frompublic static long getUnsignedInt(ByteBuffer bb, int offset)
bb
- ByteBuffer to get the int fromoffset
- the offset to get the int frompublic static void putUnsignedInt(ByteBuffer bb, long v)
bb
- ByteBuffer to put the int intov
- the long containing the unsigned intpublic static void putUnsignedInt(ByteBuffer bb, long v, int offset)
bb
- ByteBuffer to put the int intov
- the long containing the unsigned intoffset
- the offset to insert the unsigned int atpublic static BigInteger getUnsignedLong(ByteBuffer bb)
bb
- ByteBuffer to get the long frompublic static BigInteger getUnsignedLong(ByteBuffer bb, int offset)
bb
- ByteBuffer to get the long fromoffset
- the offset to get the long frompublic static void putUnsignedLong(ByteBuffer bb, BigInteger v)
bb
- ByteBuffer to put the long intov
- the BigInteger containing the unsigned longpublic static void putUnsignedLong(ByteBuffer bb, BigInteger v, int offset)
bb
- ByteBuffer to put the long intov
- the BigInteger containing the unsigned longoffset
- the offset to insert the unsigned long atCopyright © 2015. All rights reserved.