@FunctionalInterface public static interface AbstractByteBufBackedChannelOutboundInvokingOutputStream.ByteBufCreator
toByteBuf(byte[], int, int)| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
toByteBuf(byte[] bytes,
int offset,
int length)
Returns a
ByteBuf that uses the designated byte
array portion as its raw materials. |
ByteBuf toByteBuf(byte[] bytes, int offset, int length)
ByteBuf that uses the designated byte
array portion as its raw materials.
Implementations of this method must not return null.
bytes - the byte array from which to read; must
not be nulloffset - the zero-based offset of the supplied byte array at which to start reading; must be 0 or a
positive int that is less than the length of the
supplied byte arraylength - the number of bytes to read; must be 0 or
a positive int that is less than or equal to the length
of the supplied byte array minus the supplied offsetnull ByteBufNullPointerException - if bytes is nullIndexOutOfBoundsException - if offset is
negative, or length is negative, or offset +
length is greater than the length of bytesUnpooled.wrappedBuffer(byte[], int, int)Copyright © 2019–2020, microBean™. All rights reserved.