Class ReadOnlyUnsafeDirectByteBuf

All Implemented Interfaces:
ByteBufConvertible, ReferenceCounted, java.lang.Comparable<ByteBuf>

final class ReadOnlyUnsafeDirectByteBuf extends ReadOnlyByteBufferBuf
Read-only ByteBuf which wraps a read-only direct ByteBuffer and use unsafe for best performance.
  • Field Details

    • memoryAddress

      private final long memoryAddress
  • Constructor Details

    • ReadOnlyUnsafeDirectByteBuf

      ReadOnlyUnsafeDirectByteBuf(ByteBufAllocator allocator, java.nio.ByteBuffer byteBuffer)
  • Method Details