|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprotocol.core.UtilsByte
public class UtilsByte
Classe de utilidades para conversão de valores e bytes
| Nested Class Summary | |
|---|---|
static class |
UtilsByte.Endianness
|
static class |
UtilsByte.Modificator
|
| Constructor Summary | |
|---|---|
UtilsByte()
|
|
| Method Summary | |
|---|---|
static java.lang.Float |
bytesToFloat(byte[] b,
UtilsByte.Endianness en)
Convert array of bytes into float |
static int |
bytesToInt(byte[] b,
int offset,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
Convert array of bytes into integer |
static int |
bytesToInt(byte[] b,
UtilsByte.Endianness en)
Convert array of bytes into integer |
static int |
bytesToLong(byte[] b,
UtilsByte.Endianness en)
Convert array of bytes into integer |
static byte[] |
floatToBytes(java.lang.Float value,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
Convert integer value into array of bytes |
static byte[] |
intToBytes(java.lang.Integer value,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
Convert integer value into array of bytes |
static byte[] |
longToBytes(java.lang.Long value,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
Convert integer value into array of bytes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilsByte()
| Method Detail |
|---|
public static byte[] intToBytes(java.lang.Integer value,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
value - Integer valuemod - Modificator typeen - Endianness type
public static byte[] longToBytes(java.lang.Long value,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
value - Integer valuemod - Modificator typeen - Endianness type
public static byte[] floatToBytes(java.lang.Float value,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
value - Float valuemod - Modificator typeen - Endianness type
public static int bytesToInt(byte[] b,
UtilsByte.Endianness en)
b - Array of bytesen - Endianness type
public static int bytesToLong(byte[] b,
UtilsByte.Endianness en)
b - Array of bytesen - Endianness type
public static java.lang.Float bytesToFloat(byte[] b,
UtilsByte.Endianness en)
b - Array of bytesen - Endianness type
public static int bytesToInt(byte[] b,
int offset,
UtilsByte.Modificator mod,
UtilsByte.Endianness en)
b - Array of bytesoffset - Offset into array ben - Endianness type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||