Class AbstractStreamBufferPool.UnpooledStreamBuffer

    • Method Detail

      • write

        public boolean write​(byte datum)
        Description copied from class: StreamBuffer
        Writes a byte to the pooled buffer.
        Specified by:
        write in class StreamBuffer<B>
        Parameters:
        datum - Byte value.
        Returns:
        true if written value to buffer. false indicates the pooled buffer is full.
      • write

        public int write​(byte[] data,
                         int offset,
                         int length)
        Description copied from class: StreamBuffer
        Writes the data to the pooled buffer.
        Specified by:
        write in class StreamBuffer<B>
        Parameters:
        data - Data to write to the pooled buffer.
        offset - Offset within the data to write the data.
        length - Length of data to write the data.
        Returns:
        Number of bytes written.