Package io.netty.buffer
Class PoolArena.DirectArena
- All Implemented Interfaces:
PoolArenaMetric
,SizeClassesMetric
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.buffer.PoolArena
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass
-
Field Summary
Fields inherited from class io.netty.buffer.PoolArena
numThreadCaches, parent, sizeClass, smallSubpagePools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ByteBuffer
allocateDirect
(int capacity) protected void
destroyChunk
(PoolChunk<ByteBuffer> chunk) (package private) boolean
isDirect()
protected void
memoryCopy
(ByteBuffer src, int srcOffset, PooledByteBuf<ByteBuffer> dstBuf, int length) protected PooledByteBuf
<ByteBuffer> newByteBuf
(int maxCapacity) protected PoolChunk
<ByteBuffer> newChunk
(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) protected PoolChunk
<ByteBuffer> newUnpooledChunk
(int capacity) Methods inherited from class io.netty.buffer.PoolArena
allocate, chunkLists, finalize, free, freeChunk, lock, normalizeSize, numActiveAllocations, numActiveBytes, numActiveHugeAllocations, numActiveNormalAllocations, numActiveSmallAllocations, numActiveTinyAllocations, numAllocations, numChunkLists, numDeallocations, numHugeAllocations, numHugeDeallocations, numNormalAllocations, numNormalDeallocations, numPinnedBytes, numSmallAllocations, numSmallDeallocations, numSmallSubpages, numThreadCaches, numTinyAllocations, numTinyDeallocations, numTinySubpages, pageIdx2size, pageIdx2sizeCompute, pages2pageIdx, pages2pageIdxFloor, reallocate, size2SizeIdx, sizeIdx2size, sizeIdx2sizeCompute, smallSubpages, tinySubpages, toString, unlock
-
Constructor Details
-
DirectArena
DirectArena(PooledByteBufAllocator parent, SizeClasses sizeClass)
-
-
Method Details
-
isDirect
boolean isDirect()- Specified by:
isDirect
in classPoolArena<ByteBuffer>
-
newChunk
protected PoolChunk<ByteBuffer> newChunk(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) - Specified by:
newChunk
in classPoolArena<ByteBuffer>
-
newUnpooledChunk
- Specified by:
newUnpooledChunk
in classPoolArena<ByteBuffer>
-
allocateDirect
-
destroyChunk
- Specified by:
destroyChunk
in classPoolArena<ByteBuffer>
-
newByteBuf
- Specified by:
newByteBuf
in classPoolArena<ByteBuffer>
-
memoryCopy
protected void memoryCopy(ByteBuffer src, int srcOffset, PooledByteBuf<ByteBuffer> dstBuf, int length) - Specified by:
memoryCopy
in classPoolArena<ByteBuffer>
-