Guest User

Untitled

a guest
Apr 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. package buffer;
  2.  
  3. import java.nio.ByteBuffer;
  4.  
  5. public interface Buffer {
  6.  
  7.     public int readableBytes();
  8.  
  9.     public byte readByte();
  10.  
  11.     public void readBytes(byte[] array);
  12.  
  13.     public void readBytes(Buffer buffer);
  14.  
  15.     public void readBytes(ByteBuffer buffer);
  16.  
  17.     public int readInt();
  18.  
  19.     public int readLong();
  20.  
  21.     public int readShort();
  22.  
  23.     public int writableBytes();
  24.  
  25.     public void writeBytes(byte value);
  26.  
  27.     public void writeBytes(byte[] array);
  28.  
  29.     public void writeBytes(Buffer buffer);
  30.  
  31.     public void writeBytes(ByteBuffer buffer);
  32.  
  33.     public void writeInt(int value);
  34.  
  35.     public void writeLong(long value);
  36.  
  37.     public void writeShort(short value);
  38.  
  39. }
Add Comment
Please, Sign In to add comment