Package com.biglybt.pifimpl.local.utils
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:
toByteArray
in interfacePooledByteBuffer
-
toByteBuffer
- Specified by:
toByteBuffer
in interfacePooledByteBuffer
-
toMap
Description copied from interface:PooledByteBuffer
Data must be b-encoded...- Specified by:
toMap
in interfacePooledByteBuffer
- Returns:
- Throws:
IOException
-
getBuffer
-
returnToPool
public void returnToPool()- Specified by:
returnToPool
in interfacePooledByteBuffer
-