public interface BufferFactory
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) |
Buffer buffer(int initialSizeHint)
Buffer buffer()
Buffer buffer(byte[] bytes)
Buffer buffer(io.netty.buffer.ByteBuf byteBuffer)
Buffer directBuffer(byte[] bytes)
ByteBuf
.bytes
- the bytesCopyright © 2023 Eclipse. All rights reserved.