Class RingBuffer

java.lang.Object
com.hierynomus.smbj.share.RingBuffer

class RingBuffer extends Object
  • Field Details

    • buf

      private byte[] buf
    • writeIndex

      private int writeIndex
    • readIndex

      private int readIndex
    • size

      private int size
  • Constructor Details

    • RingBuffer

      public RingBuffer(int maxSize)
  • Method Details

    • write

      public void write(byte[] b, int off, int len)
    • write

      public void write(int b)
    • read

      public int read(byte[] chunk)
    • readBytes

      private void readBytes(byte[] chunk, int len)
    • writeBytes

      private void writeBytes(byte[] b, int off, int len)
    • maxSize

      public int maxSize()
    • size

      public int size()
    • isFull

      public boolean isFull()
    • isFull

      public boolean isFull(int len)
    • isEmpty

      public boolean isEmpty()