| Modifier and Type | Field and Description |
|---|---|
| public static final int | BIG_ENDIAN
Unix byte-order for signed binary representations. |
| public static final int | LITTLE_ENDIAN
Intel 80/86 reversed byte-order for signed binary representations. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static byte | |
| public static final int | Returns: the value at that addressThe buffer to read from buffer, int The offset to start reading at offset)Build a Java int from a 4-byte signed binary representation. |
| public static final long | Returns: the value at that addressThe buffer to read from buffer, int The offset to start reading at offset)Build a Java long from an 8-byte signed binary representation. |
| public static short | Returns: the value at that addressThe buffer to read from buffer, int The offset to start reading at offset)Build a Java short from a 2-byte signed binary representation. |
| BIG_ENDIAN | back to summary |
|---|---|
| public static final int BIG_ENDIAN Unix byte-order for signed binary representations. | |
| LITTLE_ENDIAN | back to summary |
|---|---|
| public static final int LITTLE_ENDIAN Intel 80/86 reversed byte-order for signed binary representations. | |
| SignedBinary | back to summary |
|---|---|
| private SignedBinary() | |
| getByte | back to summary |
|---|---|
| pack-priv static byte getByte(byte[] buffer, int offset) Get a byte from the buffer. | |
| getInt | back to summary |
|---|---|
| public static final int getInt(byte[] buffer, int offset) Build a Java int from a 4-byte signed binary representation.
| |
| getLong | back to summary |
|---|---|
| public static final long getLong(byte[] buffer, int offset) Build a Java long from an 8-byte signed binary representation.
| |
| getShort | back to summary |
|---|---|
| public static short getShort(byte[] buffer, int offset) Build a Java short from a 2-byte signed binary representation.
| |