Class FifoBuffer.Pointer

  • Enclosing class:
    FifoBuffer

    class FifoBuffer.Pointer
    extends java.lang.Object
    Points to a specific byte in a FifoBuffer.Page.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int off
      [0,p.buf.size)
      (package private) FifoBuffer.Page p  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private int chunk()
      Figure out the number of bytes that can be read/written in one array copy.
      void read​(byte[] buf, int start, int len)  
      void write​(byte[] buf, int start, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • chunk

        private int chunk()
        Figure out the number of bytes that can be read/written in one array copy.
      • write

        public void write​(byte[] buf,
                          int start,
                          int len)
      • read

        public void read​(byte[] buf,
                         int start,
                         int len)