@Experimental public interface ByteBufferProvider<T extends ByteBuffer> extends Disposable
PHASE_NAME| Modifier and Type | Method and Description |
|---|---|
T |
allocate(int size) |
T |
allocateAtLeast(int size) |
void |
dispose()
Disposes the byte buffer provider
|
byte[] |
getByteArray(int size) |
T |
reallocate(T oldBuffer,
int newSize) |
void |
release(T buffer) |
T allocate(int size)
size - the required size.T allocateAtLeast(int size)
size - the required size.T reallocate(T oldBuffer, int newSize)
newSize - the required size.oldBuffer - the old buffer.void release(T buffer)
buffer - the buffer to be releasedbyte[] getByteArray(int size)
size - the size of the byte array to provide.void dispose()
dispose in interface DisposableCopyright © 2023 MuleSoft, Inc.. All rights reserved.