Package org.conscrypt
Class AllocatedBuffer
java.lang.Object
org.conscrypt.AllocatedBuffer
A buffer that was allocated by a
BufferAllocator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ByteBufferReturns theByteBufferthat backs this buffer.abstract AllocatedBufferrelease()Returns the delegateByteBufferfor reuse or garbage collection.retain()Deprecated.this method is not usedstatic AllocatedBufferwrap(ByteBuffer buffer) Creates a newAllocatedBufferthat is backed by the givenByteBuffer.
-
Constructor Details
-
AllocatedBuffer
public AllocatedBuffer()
-
-
Method Details
-
nioBuffer
Returns theByteBufferthat backs this buffer. -
retain
Deprecated.this method is not usedReturns the current instance for backward compatibility. -
release
Returns the delegateByteBufferfor reuse or garbage collection.- Returns:
- this
AllocatedBufferinstance
-
wrap
Creates a newAllocatedBufferthat is backed by the givenByteBuffer.
-