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 Details

  • Method Details

    • getNativeAllocator

      public Void getNativeAllocator()
      Specified by:
      getNativeAllocator in interface io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>
    • buffer

      public io.micronaut.core.io.buffer.ByteBuffer<byte[]> buffer()
      Specified by:
      buffer in interface io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>
    • buffer

      public io.micronaut.core.io.buffer.ByteBuffer<byte[]> buffer(int initialCapacity)
      Specified by:
      buffer in interface io.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 interface io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>
    • copiedBuffer

      public io.micronaut.core.io.buffer.ByteBuffer<byte[]> copiedBuffer(byte[] bytes)
      Specified by:
      copiedBuffer in interface io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>
    • copiedBuffer

      public io.micronaut.core.io.buffer.ByteBuffer<byte[]> copiedBuffer(ByteBuffer nioBuffer)
      Specified by:
      copiedBuffer in interface io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>
    • wrap

      public io.micronaut.core.io.buffer.ByteBuffer<byte[]> wrap(byte[] existing)
      Specified by:
      wrap in interface io.micronaut.core.io.buffer.ByteBufferFactory<Void,byte[]>