Class AbstractDerivedByteBuf

    • Constructor Detail

      • AbstractDerivedByteBuf

        protected AbstractDerivedByteBuf​(int maxCapacity)
        Deprecated.
    • Method Detail

      • refCnt

        public final int refCnt()
        Deprecated.
      • retain

        public final ByteBuf retain()
        Deprecated.
        Specified by:
        retain in interface io.netty5.util.ReferenceCounted
        Specified by:
        retain in class ByteBuf
      • retain

        public final ByteBuf retain​(int increment)
        Deprecated.
        Specified by:
        retain in interface io.netty5.util.ReferenceCounted
        Specified by:
        retain in class ByteBuf
      • touch

        public final ByteBuf touch()
        Deprecated.
        Specified by:
        touch in interface io.netty5.util.ReferenceCounted
        Specified by:
        touch in class ByteBuf
      • touch

        public final ByteBuf touch​(Object hint)
        Deprecated.
        Specified by:
        touch in interface io.netty5.util.ReferenceCounted
        Specified by:
        touch in class ByteBuf
      • release

        public final boolean release()
        Deprecated.
      • release

        public final boolean release​(int decrement)
        Deprecated.
      • isReadOnly

        public boolean isReadOnly()
        Deprecated.
        Description copied from class: ByteBuf
        Returns true if and only if this buffer is read-only.
        Overrides:
        isReadOnly in class AbstractByteBuf
      • internalNioBuffer

        public ByteBuffer internalNioBuffer​(int index,
                                            int length)
        Deprecated.
        Description copied from class: ByteBuf
        Internal use only: Exposes the internal NIO buffer.
        Specified by:
        internalNioBuffer in class ByteBuf
      • nioBuffer

        public ByteBuffer nioBuffer​(int index,
                                    int length)
        Deprecated.
        Description copied from class: ByteBuf
        Exposes this buffer's sub-region as an NIO ByteBuffer. The returned buffer either share or contains the copied content of this buffer, while changing the position and limit of the returned NIO buffer does not affect the indexes of this buffer. This method does not modify readerIndex or writerIndex of this buffer. Please note that the returned NIO buffer will not see the changes of this buffer if this buffer is a dynamic buffer and it adjusted its capacity.
        Specified by:
        nioBuffer in class ByteBuf
        See Also:
        ByteBuf.nioBufferCount(), ByteBuf.nioBuffers(), ByteBuf.nioBuffers(int, int)
      • isContiguous

        public boolean isContiguous()
        Deprecated.
        Description copied from class: ByteBuf
        Returns true if this ByteBuf implementation is backed by a single memory region. Composite buffer implementations must return false even if they currently hold ≤ 1 components. For buffers that return true, it's guaranteed that a successful call to ByteBuf.discardReadBytes() will increase the value of ByteBuf.maxFastWritableBytes() by the current readerIndex.

        This method will return false by default, and a false return value does not necessarily mean that the implementation is composite or that it is not backed by a single memory region.

        Overrides:
        isContiguous in class ByteBuf