Slice

interface Slice

Wrapper type for byte slices.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun byteAt(position: Int): Byte
Link copied to clipboard
abstract fun copyTo(target: Array<Byte>)
abstract fun copyTo(target: ByteBuffer)
abstract fun copyTo(target: Array<Byte>, targetOffset: Int)
Link copied to clipboard
abstract fun readableBytes(): Int
Link copied to clipboard
abstract fun toByteArray(): Array<Byte>
Link copied to clipboard
open fun wrap(bytes: Array<Byte>): Slice
open fun wrap(str: String): Slice

open fun wrap(byteBuffer: ByteBuffer): Slice
Wrap a ByteBuffer.