Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package buffer;
- import java.nio.ByteBuffer;
- public interface Buffer {
- public int readableBytes();
- public byte readByte();
- public void readBytes(byte[] array);
- public void readBytes(Buffer buffer);
- public void readBytes(ByteBuffer buffer);
- public int readInt();
- public int readLong();
- public int readShort();
- public int writableBytes();
- public void writeBytes(byte value);
- public void writeBytes(byte[] array);
- public void writeBytes(Buffer buffer);
- public void writeBytes(ByteBuffer buffer);
- public void writeInt(int value);
- public void writeLong(long value);
- public void writeShort(short value);
- }
Add Comment
Please, Sign In to add comment