Top Description Fields Constructors Methods
io.netty5.buffer.internal

public final Class WrappingAllocation

extends Object
implements AllocationType
Class Inheritance
All Implemented Interfaces
io.netty5.buffer.AllocationType
Annotations
@SuppressWarnings:AssignmentOrReturnOfFieldWithMutableType
@UnstableApi
Imports
io.netty5.buffer.AllocationType, io.netty5.util.internal.UnstableApi

An AllocationType for on-heap buffer allocations that wrap an existing byte array.

Field Summary

Modifier and TypeField and Description
private final byte[]

Constructor Summary

AccessConstructor and Description
public
WrappingAllocation(byte[] array)

Method Summary

Modifier and TypeMethod and Description
public byte[]
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arrayback to summary
private final byte[] array

Constructor Detail

WrappingAllocationback to summary
public WrappingAllocation(byte[] array)

Method Detail

getArrayback to summary
public byte[] getArray()
isDirectback to summary
public boolean isDirect()

Implements io.netty5.buffer.AllocationType.isDirect.

Returns:boolean

Doc from io.netty5.buffer.AllocationType.isDirect.

true if this allocation type produces off-heap, or direct buffers. Otherwise false, if the buffers are on-heap.

Annotations
@Override