io.vertx.core.spi

## Interface BufferFactory

-     public interface BufferFactory

  Author:
    Tim Fox

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Buffer` | `buffer()`
    `Buffer` | `buffer(byte[] bytes)`
    `Buffer` | `buffer(io.netty.buffer.ByteBuf byteBuffer)`
    `Buffer` | `buffer(int initialSizeHint)`
    `Buffer` | `buffer(String str)`
    `Buffer` | `buffer(String str, String enc)`
    `Buffer` | `directBuffer(byte[] bytes)` Create a direct buffer, use this with care as Vert.x buffers are not releasable (unpooled) and you would need to release the underlying Netty wrapped `ByteBuf`.
    `Buffer` | `directBuffer(String str, String enc)`

- - ### Method Detail

    - #### buffer

          Buffer buffer(int initialSizeHint)

    - #### buffer

          Buffer buffer()

    - #### buffer

          Buffer buffer(String str)

    - #### buffer

          Buffer buffer(String str,
                        String enc)

    - #### buffer

          Buffer buffer(byte[] bytes)

    - #### buffer

          Buffer buffer(io.netty.buffer.ByteBuf byteBuffer)

    - #### directBuffer

          Buffer directBuffer(String str,
                              String enc)

    - #### directBuffer

          Buffer directBuffer(byte[] bytes)

      Create a direct buffer, use this with care as Vert.x buffers are not releasable (unpooled) and you would need to release the underlying Netty wrapped `ByteBuf`.
      Parameters:
        `bytes` - the bytes
      Returns:
        the buffer

Copyright © 2020 Eclipse. All rights reserved.