Class PoolArena.DirectArena

    • Constructor Detail

      • DirectArena

        DirectArena​(PooledByteBufAllocator parent,
                    int pageSize,
                    int maxOrder,
                    int pageShifts,
                    int chunkSize,
                    int directMemoryCacheAlignment)
    • Method Detail

      • isDirect

        boolean isDirect()
        Specified by:
        isDirect in class PoolArena<java.nio.ByteBuffer>
      • offsetCacheLine

        int offsetCacheLine​(java.nio.ByteBuffer memory)
      • newChunk

        protected PoolChunk<java.nio.ByteBuffer> newChunk​(int pageSize,
                                                          int maxOrder,
                                                          int pageShifts,
                                                          int chunkSize)
        Specified by:
        newChunk in class PoolArena<java.nio.ByteBuffer>
      • allocateDirect

        private static java.nio.ByteBuffer allocateDirect​(int capacity)
      • destroyChunk

        protected void destroyChunk​(PoolChunk<java.nio.ByteBuffer> chunk)
        Specified by:
        destroyChunk in class PoolArena<java.nio.ByteBuffer>
      • memoryCopy

        protected void memoryCopy​(java.nio.ByteBuffer src,
                                  int srcOffset,
                                  PooledByteBuf<java.nio.ByteBuffer> dstBuf,
                                  int length)
        Specified by:
        memoryCopy in class PoolArena<java.nio.ByteBuffer>