Class UnpooledUnsafeNoCleanerDirectByteBuf

All Implemented Interfaces:
ByteBufConvertible, ReferenceCounted, java.lang.Comparable<ByteBuf>
Direct Known Subclasses:
UnpooledByteBufAllocator.InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf

class UnpooledUnsafeNoCleanerDirectByteBuf extends UnpooledUnsafeDirectByteBuf
  • Constructor Details

    • UnpooledUnsafeNoCleanerDirectByteBuf

      UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
  • Method Details

    • allocateDirect

      protected java.nio.ByteBuffer allocateDirect(int initialCapacity)
      Description copied from class: UnpooledDirectByteBuf
      Allocate a new direct ByteBuffer with the given initialCapacity.
      Overrides:
      allocateDirect in class UnpooledDirectByteBuf
    • reallocateDirect

      CleanableDirectBuffer reallocateDirect(CleanableDirectBuffer oldBuffer, int newCapacity)
    • freeDirect

      protected void freeDirect(java.nio.ByteBuffer buffer)
      Description copied from class: UnpooledDirectByteBuf
      Free a direct ByteBuffer
      Overrides:
      freeDirect in class UnpooledDirectByteBuf
    • capacity

      public ByteBuf capacity(int newCapacity)
      Description copied from class: ByteBuf
      Adjusts the capacity of this buffer. If the newCapacity is less than the current capacity, the content of this buffer is truncated. If the newCapacity is greater than the current capacity, the buffer is appended with unspecified data whose length is (newCapacity - currentCapacity).
      Overrides:
      capacity in class UnpooledDirectByteBuf