Package io.micronaut.servlet.http
Class ByteArrayBufferFactory
java.lang.Object
io.micronaut.servlet.http.ByteArrayBufferFactory
- All Implemented Interfaces:
io.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
@Internal
public class ByteArrayBufferFactory
extends Object
implements io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>
ByteBufferFactory
implementation based on simple byte arrays.- Since:
- 4.10.0
- Author:
- Jonas Konrad
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.io.buffer.ByteBuffer<byte[]>
buffer()
io.micronaut.core.io.buffer.ByteBuffer<byte[]>
buffer
(int initialCapacity) io.micronaut.core.io.buffer.ByteBuffer<byte[]>
buffer
(int initialCapacity, int maxCapacity) io.micronaut.core.io.buffer.ByteBuffer<byte[]>
copiedBuffer
(byte[] bytes) io.micronaut.core.io.buffer.ByteBuffer<byte[]>
copiedBuffer
(ByteBuffer nioBuffer) io.micronaut.core.io.buffer.ByteBuffer<byte[]>
wrap
(byte[] existing)
-
Field Details
-
INSTANCE
-
-
Method Details
-
getNativeAllocator
- Specified by:
getNativeAllocator
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-
buffer
public io.micronaut.core.io.buffer.ByteBuffer<byte[]> buffer()- Specified by:
buffer
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-
buffer
public io.micronaut.core.io.buffer.ByteBuffer<byte[]> buffer(int initialCapacity) - Specified by:
buffer
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-
buffer
public io.micronaut.core.io.buffer.ByteBuffer<byte[]> buffer(int initialCapacity, int maxCapacity) - Specified by:
buffer
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-
copiedBuffer
public io.micronaut.core.io.buffer.ByteBuffer<byte[]> copiedBuffer(byte[] bytes) - Specified by:
copiedBuffer
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-
copiedBuffer
- Specified by:
copiedBuffer
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-
wrap
public io.micronaut.core.io.buffer.ByteBuffer<byte[]> wrap(byte[] existing) - Specified by:
wrap
in interfaceio.micronaut.core.io.buffer.ByteBufferFactory<Void,
byte[]>
-