wrap

open fun wrap(byteBuffer: ByteBuffer): Slice

Wrap a ByteBuffer. This will not copy the buffer.


open fun wrap(bytes: Array<Byte>): Slice
open fun wrap(str: String): Slice