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 ByteBuffer
Returns theByteBuffer
that backs this buffer.abstract AllocatedBuffer
release()
Returns the delegateByteBuffer
for reuse or garbage collection.retain()
Deprecated.this method is not usedstatic AllocatedBuffer
wrap
(ByteBuffer buffer) Creates a newAllocatedBuffer
that is backed by the givenByteBuffer
.
-
Constructor Details
-
AllocatedBuffer
public AllocatedBuffer()
-
-
Method Details
-
nioBuffer
Returns theByteBuffer
that backs this buffer. -
retain
Deprecated.this method is not usedReturns the current instance for backward compatibility. -
release
Returns the delegateByteBuffer
for reuse or garbage collection.- Returns:
- this
AllocatedBuffer
instance
-
wrap
Creates a newAllocatedBuffer
that is backed by the givenByteBuffer
.
-