Class PooledByteBufferImpl
java.lang.Object
com.biglybt.pifimpl.local.utils.PooledByteBufferImpl
- All Implemented Interfaces:
PooledByteBuffer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPooledByteBufferImpl(byte[] data) PooledByteBufferImpl(byte[] data, int offset, int length) PooledByteBufferImpl(int size) PooledByteBufferImpl(DirectByteBuffer _buffer) -
Method Summary
-
Field Details
-
buffer
-
-
Constructor Details
-
PooledByteBufferImpl
-
PooledByteBufferImpl
public PooledByteBufferImpl(int size) -
PooledByteBufferImpl
public PooledByteBufferImpl(byte[] data) -
PooledByteBufferImpl
public PooledByteBufferImpl(byte[] data, int offset, int length)
-
-
Method Details
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin interfacePooledByteBuffer
-
toByteBuffer
- Specified by:
toByteBufferin interfacePooledByteBuffer
-
toMap
Description copied from interface:PooledByteBufferData must be b-encoded...- Specified by:
toMapin interfacePooledByteBuffer- Returns:
- Throws:
IOException
-
getBuffer
-
returnToPool
public void returnToPool()- Specified by:
returnToPoolin interfacePooledByteBuffer
-