Interface BufferLikeDelegate<A, D extends BufferLike<A>>

All Superinterfaces:
ArrayReadable<A>, ArrayWritable<A>, BufferLike<A>, HasArrayOps<A>, ReadableChannelFactory<A>, ReadableChannelSource<A>, SeekableReadableChannelSource<A>
All Known Subinterfaces:
BufferDelegate<A>, RangeBufferDelegate<A>, RangeBufferDelegateMutable<A>
All Known Implementing Classes:
BufferDelegateBase, RangeBufferDelegateBase, RangeBufferDelegateMutableImpl

public interface BufferLikeDelegate<A, D extends BufferLike<A>> extends BufferLike<A>
  • Method Details

    • getDelegate

      D getDelegate()
    • write

      default void write(long offsetInBuffer, A arrayWithItemsOfTypeT, int arrOffset, int arrLength) throws IOException
      Description copied from interface: ArrayWritable
      The method that needs to be implemented; all other methods default-delegate to this one.
      Specified by:
      write in interface ArrayWritable<A>
      Throws:
      IOException
    • readInto

      default int readInto(A tgt, int tgtOffset, long srcOffset, int length) throws IOException
      Specified by:
      readInto in interface ArrayReadable<A>
      Throws:
      IOException
    • getArrayOps

      default ArrayOps<A> getArrayOps()
      Specified by:
      getArrayOps in interface HasArrayOps<A>
    • getCapacity

      default long getCapacity()
      Description copied from interface: BufferLike
      Buffers with 'unlimited' capacity should return Long.MAX_VALUE
      Specified by:
      getCapacity in interface BufferLike<A>