Class FifoBuffer.Pointer

java.lang.Object
com.trilead.ssh2.channel.FifoBuffer.Pointer
Enclosing class:
FifoBuffer

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

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

    Constructors
    Constructor
    Description
    Pointer(FifoBuffer.Page p, int off)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private int
    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
  • Field Details

  • Constructor Details

  • Method Details

    • 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)