docs/javadoc/reference/com/facebook/common/memory/PooledByteBuffer.html
|
|
Pool<V>
Summary: Nested Classes | Methods | Inherited Methods | [Expand All]
public interface
implements Closeable
| com.facebook.common.memory.PooledByteBuffer |
| Known Indirect Subclasses
| MemoryPooledByteBuffer | An implementation of PooledByteBuffer that uses (MemoryChunk) to store data |
|
A 'pooled' byte-buffer abstraction. Represents an immutable sequence of bytes stored off the java heap.
| Nested Classes |
|---|
| class |
| Public Methods |
|---|
| abstract void |
| Close this PooledByteBuffer and release all underlying resources |
| abstract ByteBuffer |
| Gets the underlying ByteBuffer backing this buffer if present, else null. |
| abstract long |
| Gets the pointer to native memory backing this buffer if present |
| abstract boolean |
| Check if this instance has already been closed |
| abstract int |
| Read consecutive bytes. |
| abstract byte |
| Read byte at given offset |
| abstract int |
| Get the size of the byte buffer |
| [Expand] Inherited Methods | | --- | | From interface java.io.Closeable
| abstract void | close() |
| | From interface java.lang.AutoCloseable
| abstract void | close() |
|
Close this PooledByteBuffer and release all underlying resources
Gets the underlying ByteBuffer backing this buffer if present, else null.
Gets the pointer to native memory backing this buffer if present
| UnsupportedOperationException | if the buffer does not have a pointer to memory |
Check if this instance has already been closed
Read consecutive bytes.
| offset | the position in the PooledByteBuffer of the first byte to read | | buffer | the byte array where read bytes will be copied to | | bufferOffset | the position within the buffer of the first copied byte | | length | number of bytes to copy |
Read byte at given offset
Get the size of the byte buffer
+Generated by Doclava. +