Class CachedBufferAllocator.CachedIoBuffer

java.lang.Object
net.rubyeye.xmemcached.buffer.CachedBufferAllocator.CachedIoBuffer
All Implemented Interfaces:
IoBuffer
Enclosing class:
CachedBufferAllocator

public class CachedBufferAllocator.CachedIoBuffer extends Object implements IoBuffer
  • Field Details

  • Constructor Details

    • CachedIoBuffer

      public CachedIoBuffer(ByteBuffer origBuffer)
  • Method Details

    • putInt

      public void putInt(int i)
      Specified by:
      putInt in interface IoBuffer
    • putShort

      public void putShort(short s)
      Specified by:
      putShort in interface IoBuffer
    • order

      public ByteOrder order()
      Specified by:
      order in interface IoBuffer
    • isDirect

      public boolean isDirect()
      Specified by:
      isDirect in interface IoBuffer
    • order

      public void order(ByteOrder byteOrder)
      Specified by:
      order in interface IoBuffer
    • putLong

      public void putLong(long l)
      Specified by:
      putLong in interface IoBuffer
    • free

      public final void free()
      Specified by:
      free in interface IoBuffer
    • getByteBuffers

      public final ByteBuffer[] getByteBuffers()
      Specified by:
      getByteBuffers in interface IoBuffer
    • put

      public final void put(byte[] bytes)
      Specified by:
      put in interface IoBuffer
    • capacity

      public final int capacity()
      Specified by:
      capacity in interface IoBuffer
    • clear

      public final void clear()
      Specified by:
      clear in interface IoBuffer
    • reset

      public final void reset()
      Specified by:
      reset in interface IoBuffer
    • remaining

      public final int remaining()
      Specified by:
      remaining in interface IoBuffer
    • position

      public final int position()
      Specified by:
      position in interface IoBuffer
    • mark

      public final void mark()
      Specified by:
      mark in interface IoBuffer
    • limit

      public final int limit()
      Specified by:
      limit in interface IoBuffer
    • hasRemaining

      public final boolean hasRemaining()
      Specified by:
      hasRemaining in interface IoBuffer
    • flip

      public final void flip()
      Specified by:
      flip in interface IoBuffer
    • put

      public final void put(byte b)
      Specified by:
      put in interface IoBuffer
    • put

      public final void put(ByteBuffer buff)
      Specified by:
      put in interface IoBuffer
    • getByteBuffer

      public final ByteBuffer getByteBuffer()
      Specified by:
      getByteBuffer in interface IoBuffer
    • limit

      public final void limit(int limit)
      Specified by:
      limit in interface IoBuffer
    • position

      public final void position(int pos)
      Specified by:
      position in interface IoBuffer