public class Buffers
extends java.lang.Object
| Constructor and Description |
|---|
Buffers() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readBytes(java.nio.ByteBuffer buffer,
int size)
Get bytes
|
static java.lang.String |
readString(java.nio.ByteBuffer buffer,
int strLen)
Read utf16 strings, use strLen, not ending 0 char.
|
static short |
readUByte(java.nio.ByteBuffer buffer)
Get one unsigned byte as short type
|
static long |
readUInt(java.nio.ByteBuffer buffer)
Get one unsigned int as long type
|
static int |
readUShort(java.nio.ByteBuffer buffer)
Get one unsigned short as int type
|
static void |
skip(java.nio.ByteBuffer buffer,
int count)
Skip count bytes
|
public static short readUByte(java.nio.ByteBuffer buffer)
public static int readUShort(java.nio.ByteBuffer buffer)
public static long readUInt(java.nio.ByteBuffer buffer)
public static byte[] readBytes(java.nio.ByteBuffer buffer,
int size)
public static java.lang.String readString(java.nio.ByteBuffer buffer,
int strLen)
strLen - public static void skip(java.nio.ByteBuffer buffer,
int count)