public ByteBuf Wrap(byte[] data, int used) { SimpleByteBuf byteBuf = GetByteBufCore(); byteBuf.Attach(data, _segmentSize, used); return(byteBuf); }
public ByteBuf GetBuffer() { byte[] data = GetDefaultDataCore(); SimpleByteBuf byteBuf = GetByteBufCore(); byteBuf.Attach(data, _segmentSize, 0); return(byteBuf); }