- java.lang.Object
-
- io.netty5.buffer.api.internal.WrappingAllocation
-
- All Implemented Interfaces:
AllocationType
@UnstableApi public final class WrappingAllocation extends Object implements AllocationType
AnAllocationType
for on-heap buffer allocations that wrap an existing byte array.
-
-
Constructor Summary
Constructors Constructor Description WrappingAllocation(byte[] array)
-
-
-
Method Detail
-
getArray
public byte[] getArray()
-
isDirect
public boolean isDirect()
- Specified by:
isDirect
in interfaceAllocationType
- Returns:
true
if this allocation type produces off-heap, or direct buffers. Otherwisefalse
, if the buffers are on-heap.
-
-