Top Description Constructors Methods
org.conscrypt

public abstract Class AllocatedBuffer

extends Object
Class Inheritance
Annotations
@ExperimentalApi
Static Imports
org.conscrypt.Preconditions.checkNotNull

A buffer that was allocated by a BufferAllocator.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract ByteBuffer
nioBuffer()

Returns the ByteBuffer that backs this buffer.

public abstract AllocatedBuffer

Returns:

this AllocatedBuffer instance
release
()

Returns the delegate ByteBuffer for reuse or garbage collection.

public AllocatedBuffer
retain()

Deprecated this method is not used
Returns the current instance for backward compatibility.
public static AllocatedBuffer
wrap(final ByteBuffer buffer)

Creates a new AllocatedBuffer that is backed by the given ByteBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AllocatedBufferback to summary
public AllocatedBuffer()

Method Detail

nioBufferback to summary
public abstract ByteBuffer nioBuffer()

Returns the ByteBuffer that backs this buffer.

releaseback to summary
public abstract AllocatedBuffer release()

Returns the delegate ByteBuffer for reuse or garbage collection.

Returns:AllocatedBuffer

this AllocatedBuffer instance

retainback to summary
public AllocatedBuffer retain()

Deprecated

this method is not used

Returns the current instance for backward compatibility.

Annotations
@Deprecated
wrapback to summary
public static AllocatedBuffer wrap(final ByteBuffer buffer)

Creates a new AllocatedBuffer that is backed by the given ByteBuffer.