public final class ByteBuf extends Object
| 构造器和说明 |
|---|
ByteBuf() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ByteBuf |
allocate(int capacity) |
static ByteBuf |
allocateDirect(int capacity) |
ByteBuf |
checkCapacity(int minWritableBytes) |
ByteBuf |
clear() |
ByteBuf |
flip() |
byte |
get() |
ByteBuf |
get(byte[] array) |
byte[] |
getArray() |
int |
getInt() |
long |
getLong() |
short |
getShort() |
ByteBuffer |
nioBuffer() |
ByteBuf |
put(byte b) |
ByteBuf |
put(byte[] value) |
ByteBuf |
putInt(int value) |
ByteBuf |
putLong(long value) |
ByteBuf |
putShort(int value) |
static ByteBuf |
wrap(byte[] array) |
public static ByteBuf allocate(int capacity)
public static ByteBuf allocateDirect(int capacity)
public static ByteBuf wrap(byte[] array)
public byte[] getArray()
public ByteBuf get(byte[] array)
public byte get()
public ByteBuf put(byte b)
public short getShort()
public ByteBuf putShort(int value)
public int getInt()
public ByteBuf putInt(int value)
public long getLong()
public ByteBuf putLong(long value)
public ByteBuf put(byte[] value)
public ByteBuf checkCapacity(int minWritableBytes)
public ByteBuffer nioBuffer()
public ByteBuf clear()
public ByteBuf flip()
Copyright © 2016. All rights reserved.