Class UnpooledUnsafeNoCleanerDirectByteBuf

    • Constructor Detail

      • UnpooledUnsafeNoCleanerDirectByteBuf

        UnpooledUnsafeNoCleanerDirectByteBuf​(ByteBufAllocator alloc,
                                             int initialCapacity,
                                             int maxCapacity)
    • Method Detail

      • reallocateDirect

        java.nio.ByteBuffer reallocateDirect​(java.nio.ByteBuffer oldBuffer,
                                             int initialCapacity)
      • 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