ByteBufferAllocator
Artifact: androidx.media3:media3-muxer
@UnstableApi
interface ByteBufferAllocator
A memory allocator for ByteBuffer.
Summary
Constants |
|
|---|---|
const ByteBufferAllocator! |
Default implementation. |
Public functions |
|
|---|---|
ByteBuffer! |
Allocates and returns a new |
Constants
Public functions
allocate
fun allocate(capacity: Int): ByteBuffer!
Allocates and returns a new ByteBuffer.
| Parameters | |
|---|---|
capacity: Int |
The new buffer's capacity, in bytes. |
| Throws | |
|---|---|
java.lang.IllegalArgumentException |
If the |