|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.util.Unsigned
public class Unsigned
A util library class for dealing with the lack of unsigned datatypes in Java
| Constructor Summary | |
|---|---|
Unsigned()
|
|
| Method Summary | |
|---|---|
static short |
getUnsignedByte(java.nio.ByteBuffer bb)
Get an unsigned byte from the current position of the ByteBuffer |
static short |
getUnsignedByte(java.nio.ByteBuffer bb,
int offset)
Get an unsigned byte from the specified offset in the ByteBuffer |
static long |
getUnsignedInt(java.nio.ByteBuffer bb)
Get an unsigned int from the current position of the ByteBuffer |
static long |
getUnsignedInt(java.nio.ByteBuffer bb,
int offset)
Get an unsigned int from the specified offset in the ByteBuffer |
static java.math.BigInteger |
getUnsignedLong(java.nio.ByteBuffer bb)
Get an unsigned long from the current position of the ByteBuffer |
static java.math.BigInteger |
getUnsignedLong(java.nio.ByteBuffer bb,
int offset)
Get an unsigned long from the specified offset in the ByteBuffer |
static int |
getUnsignedShort(java.nio.ByteBuffer bb)
Get an unsigned short from the current position of the ByteBuffer |
static int |
getUnsignedShort(java.nio.ByteBuffer bb,
int offset)
Get an unsigned short from the specified offset in the ByteBuffer |
static void |
putUnsignedByte(java.nio.ByteBuffer bb,
short v)
Put an unsigned byte into the specified ByteBuffer at the current position |
static void |
putUnsignedByte(java.nio.ByteBuffer bb,
short v,
int offset)
Put an unsigned byte into the specified ByteBuffer at the specified offset |
static void |
putUnsignedInt(java.nio.ByteBuffer bb,
long v)
Put an unsigned int into the specified ByteBuffer at the current position |
static void |
putUnsignedInt(java.nio.ByteBuffer bb,
long v,
int offset)
Put an unsigned int into the specified ByteBuffer at the specified offset |
static void |
putUnsignedLong(java.nio.ByteBuffer bb,
java.math.BigInteger v)
Put an unsigned long into the specified ByteBuffer at the current position |
static void |
putUnsignedLong(java.nio.ByteBuffer bb,
java.math.BigInteger v,
int offset)
Put an unsigned long into the specified ByteBuffer at the specified offset |
static void |
putUnsignedShort(java.nio.ByteBuffer bb,
int v)
Put an unsigned short into the specified ByteBuffer at the current position |
static void |
putUnsignedShort(java.nio.ByteBuffer bb,
int v,
int offset)
Put an unsigned short into the specified ByteBuffer at the specified offset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Unsigned()
| Method Detail |
|---|
public static short getUnsignedByte(java.nio.ByteBuffer bb)
bb - ByteBuffer to get the byte from
public static short getUnsignedByte(java.nio.ByteBuffer bb,
int offset)
bb - ByteBuffer to get the byte fromoffset - the offset to get the byte from
public static void putUnsignedByte(java.nio.ByteBuffer bb,
short v)
bb - ByteBuffer to put the byte intov - the short containing the unsigned byte
public static void putUnsignedByte(java.nio.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(java.nio.ByteBuffer bb)
bb - ByteBuffer to get the byte from
public static int getUnsignedShort(java.nio.ByteBuffer bb,
int offset)
bb - ByteBuffer to get the short fromoffset - the offset to get the short from
public static void putUnsignedShort(java.nio.ByteBuffer bb,
int v)
bb - ByteBuffer to put the short intov - the int containing the unsigned short
public static void putUnsignedShort(java.nio.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(java.nio.ByteBuffer bb)
bb - ByteBuffer to get the int from
public static long getUnsignedInt(java.nio.ByteBuffer bb,
int offset)
bb - ByteBuffer to get the int fromoffset - the offset to get the int from
public static void putUnsignedInt(java.nio.ByteBuffer bb,
long v)
bb - ByteBuffer to put the int intov - the long containing the unsigned int
public static void putUnsignedInt(java.nio.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 java.math.BigInteger getUnsignedLong(java.nio.ByteBuffer bb)
bb - ByteBuffer to get the long from
public static java.math.BigInteger getUnsignedLong(java.nio.ByteBuffer bb,
int offset)
bb - ByteBuffer to get the long fromoffset - the offset to get the long from
public static void putUnsignedLong(java.nio.ByteBuffer bb,
java.math.BigInteger v)
bb - ByteBuffer to put the long intov - the BigInteger containing the unsigned long
public static void putUnsignedLong(java.nio.ByteBuffer bb,
java.math.BigInteger v,
int offset)
bb - ByteBuffer to put the long intov - the BigInteger containing the unsigned longoffset - the offset to insert the unsigned long at
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||