public class ArrayBytesBuff extends AbstractArrayBytesBuff
DEFAULT_CAPACITY, LEN_1, LEN_2, LEN_3, LEN_4, LEN_8| 构造器和说明 |
|---|
ArrayBytesBuff() |
ArrayBytesBuff(byte[] data) |
ArrayBytesBuff(int capacity) |
capacity, ensureCapacity, ensureCapacityUnsafe, getArray, getBoolean, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getInt, getIntLE, getLong, getLongLE, getMedium, getMediumLE, getRawBytes, getReadableBytes, getShort, getShortLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedMedium, getUnsignedMediumLE, getUnsignedShort, getUnsignedShortLE, length, setBoolean, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, setZero, toStringpublic ArrayBytesBuff()
public ArrayBytesBuff(int capacity)
public ArrayBytesBuff(byte[] data)
public int readerIndex()
BytesBuffpublic int writerIndex()
BytesBuffpublic BytesBuff setIndex(int readerIndex, int writerIndex)
BytesBuffpublic int readableBytes()
BytesBuffpublic int writableBytes()
BytesBuffpublic void clear()
BytesBuffpublic void reset()
BytesBuffpublic boolean readBoolean()
public byte readByte()
public short readUnsignedByte()
public short readShort()
public short readShortLE()
public int readUnsignedShort()
public int readUnsignedShortLE()
public int readMedium()
public int readMediumLE()
public int readUnsignedMedium()
public int readUnsignedMediumLE()
public int readInt()
public int readIntLE()
public long readUnsignedInt()
public long readUnsignedIntLE()
public long readLong()
public long readLongLE()
public char readChar()
public float readFloat()
public double readDouble()
public BytesBuff readBytes(int length)
public BytesBuff readBytes(byte[] dst)
public BytesBuff readBytes(byte[] dst, int dstIndex, int length)
public BytesBuff readBytes(OutputStream out, int length) throws IOException
IOExceptionpublic BytesBuff skipBytes(int length)
public BytesBuff writeBoolean(boolean value)
public BytesBuff writeByte(int value)
public BytesBuff writeShort(int value)
public BytesBuff writeShortLE(int value)
public BytesBuff writeMedium(int value)
public BytesBuff writeMediumLE(int value)
public BytesBuff writeInt(int value)
public BytesBuff writeIntLE(int value)
public BytesBuff writeLong(long value)
public BytesBuff writeLongLE(long value)
public BytesBuff writeChar(int value)
public BytesBuff writeFloat(float value)
public BytesBuff writeDouble(double value)
public BytesBuff writeBytes(byte[] src)
public BytesBuff writeBytes(byte[] src, int srcIndex, int length)
protected Object clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionCopyright © 2020. All rights reserved.