Package-level declarations

Functions

Link copied to clipboard

Append byte to a byte List

inline fun MutableList<Byte>.append(double: Double): MutableList<Byte>

Append double to a byte List

Append float to a byte List

Append int to a byte List

Append long to a byte List

Append short to a byte List

inline fun MutableList<Byte>.append(unsignedByte: UByte): MutableList<Byte>

Append unsigned byte to a byte List

inline fun MutableList<Byte>.append(unsignedInt: UInt): MutableList<Byte>

Append unsigned int to a byte List

inline fun MutableList<Byte>.append(unsignedLong: ULong): MutableList<Byte>

Append unsigned long to a byte List

inline fun MutableList<Byte>.append(unsignedShort: UShort): MutableList<Byte>

Append unsigned short to a byte List

Link copied to clipboard
fun byteArrayOf(vararg bytes: UByte): ByteArray

Create a ByteArray from unsigned bytes

Link copied to clipboard
inline fun byteOf(b: Byte): Byte

Byte of byte

Link copied to clipboard
inline fun doubleOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): Double

Double of four bytes

Link copied to clipboard
inline fun floatOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte): Float

Float of four bytes

Link copied to clipboard
fun ByteArray.getByte(index: Int): Byte
fun List<Byte>.getByte(index: Int): Byte

Get specific byte from a byte array at a given position

Link copied to clipboard
fun ByteArray.getBytes(index: Int, length: Int): ByteArray

Get specific bytes from a byte array at a given position

fun List<Byte>.getBytes(index: Int, length: Int): ByteArray

Get a byte array from a byte array

Link copied to clipboard
fun List<Byte>.getDouble(index: Int): Double

Get specific double from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getFloat(index: Int): Float

Get specific float from a byte array at a given position

Link copied to clipboard
fun ByteArray.getInt(index: Int): Int
fun List<Byte>.getInt(index: Int): Int

Get specific int from a byte array at a given position

Link copied to clipboard
fun ByteArray.getLong(index: Int): Long
fun List<Byte>.getLong(index: Int): Long

Get specific long from a byte array at a given position

Link copied to clipboard
fun List<Byte>.getShort(index: Int): Short

Get specific short from a byte array at a given position

Link copied to clipboard

Get specific unsigned char from a byte array at a given position

Get specific unsigned byte from a byte array at a given position

Link copied to clipboard

Get specific unsigned int from a byte array at a given position

Link copied to clipboard

Get specific unsigned long from a byte array at a given position

Link copied to clipboard

Get specific unsigned short from a byte array at a given position

Link copied to clipboard
inline fun intOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte): Int

Int of four bytes

Link copied to clipboard
inline fun longOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): Long

Long of eight bytes

Link copied to clipboard

Remove the last byte from a byte array

Link copied to clipboard

Remove the last double from a byte array

Link copied to clipboard

Remove the last float from a byte array

Link copied to clipboard

Remove the last int from a byte array

Link copied to clipboard

Remove the last long from a byte array

Link copied to clipboard

Remove the last short from a byte array

Link copied to clipboard

Remove the last unsigned byte from a byte array

Link copied to clipboard

Remove the last unsigned int from a byte array

Link copied to clipboard

Remove the last unsigned long from a byte array

Link copied to clipboard

Remove the last unsigned short from a byte array

Link copied to clipboard
fun ByteArray.setByte(index: Int, byte: Byte): ByteArray

Set specific bytes in a byte array to a byte

Link copied to clipboard
fun ByteArray.setBytes(startIndex: Int, bytes: ByteArray): ByteArray

Set specific bytes in a byte array to a byte array

fun MutableList<Byte>.setBytes(startIndex: Int, bytes: ByteArray): MutableList<Byte>
fun MutableList<Byte>.setBytes(startIndex: Int, bytes: List<Byte>): MutableList<Byte>

Set specific bytes in a byte array to a byte List

Link copied to clipboard
fun ByteArray.setDouble(index: Int, double: Double): ByteArray

Set specific bytes in a byte array to a double

Link copied to clipboard
fun ByteArray.setFloat(index: Int, float: Float): ByteArray

Set specific bytes in a byte array to a float

Link copied to clipboard
fun ByteArray.setInt(index: Int, int: Int): ByteArray

Set specific bytes in a byte array to an int

Link copied to clipboard
fun ByteArray.setLong(index: Int, long: Long): ByteArray

Set specific bytes in a byte array to a long

Link copied to clipboard
fun ByteArray.setShort(index: Int, short: Short): ByteArray

Set specific bytes in a byte array to a short

Link copied to clipboard
fun ByteArray.setUnsignedByte(index: Int, unsignedByte: UByte): ByteArray
fun MutableList<Byte>.setUnsignedByte(index: Int, unsignedByte: UByte): MutableList<Byte>

Set specific bytes in a byte array to an unsigned char

Link copied to clipboard
fun ByteArray.setUnsignedInt(index: Int, unsignedInt: UInt): ByteArray
fun MutableList<Byte>.setUnsignedInt(index: Int, unsignedInt: UInt): MutableList<Byte>

Set specific bytes in a byte array to an unsigned int

Link copied to clipboard
fun ByteArray.setUnsignedLong(index: Int, unsignedLong: ULong): ByteArray
fun MutableList<Byte>.setUnsignedLong(index: Int, unsignedLong: ULong): MutableList<Byte>

Set specific bytes in a byte array to an unsigned long

Link copied to clipboard
fun ByteArray.setUnsignedShort(index: Int, unsignedShort: UShort): ByteArray
fun MutableList<Byte>.setUnsignedShort(index: Int, unsignedShort: UShort): MutableList<Byte>

Set specific bytes in a byte array to an unsigned short

Link copied to clipboard
inline fun shortOf(b0: Byte, b1: Byte): Short

Short of two bytes

Link copied to clipboard

Convert a byte array to a byte.

Link copied to clipboard

Convert Byte to ByteArray

Convert a String to a ByteArray

Convert Double to ByteArray

Convert Float to ByteArray

Convert Int to ByteArray

Convert Long to ByteArray

Convert Short to ByteArray

Convert UByte to ByteArray

Convert UInt to ByteArray

Convert ULong to ByteArray

Convert UShort to ByteArray

Link copied to clipboard

Convert a byte array to a double.

Link copied to clipboard

Convert a byte array to a float.

Link copied to clipboard

Convert the ByteArray to a hexadecimal string

Get a byte array from a byte array

Link copied to clipboard
fun List<Byte>.toInt(): Int

Convert a byte array to int.

Link copied to clipboard

Convert a byte array to long.

Link copied to clipboard

Convert a byte array to short.

Link copied to clipboard

Convert a byte array to an unsigned char

Link copied to clipboard

Convert a byte array to an unsigned int

Link copied to clipboard

Convert a byte array to an unsigned long

Link copied to clipboard

Convert a byte array to an unsigned short

Link copied to clipboard

Convert the Bytes from the ByteArray to String

Get a byte array from a byte array

Link copied to clipboard
inline fun ubyteOf(b: Byte): UByte

UByte of one byte

Link copied to clipboard
inline fun uintOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte): UInt

UInt of four bytes

Link copied to clipboard
inline fun ulongOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): ULong

ULong of eight bytes

Link copied to clipboard
inline fun unsignedByteOf(b: Byte): UByte

UByte of one byte

Link copied to clipboard
inline fun unsignedIntOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte): UInt

UInt of four bytes

Link copied to clipboard
inline fun unsignedLongOf(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): ULong

ULong of eight bytes

Link copied to clipboard
inline fun unsignedShortOf(b0: Byte, b1: Byte): UShort

UShort of two bytes

Link copied to clipboard
inline fun ushortOf(b0: Byte, b1: Byte): UShort

UShort of two bytes