public class Buffers
extends java.lang.Object
| 构造器和说明 |
|---|
Buffers() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)