Package-level declarations

Types

Link copied to clipboard
class ByteArrayBuilder(initialCap: Int = 128)

Helper class to assist with building byte arrays. Works similarly to StringBuilder.

Link copied to clipboard
open class ComparableByteArray(val bytes: ByteArray)

A ByteArray which implements Object.equals and Object.hashCode

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
infix fun Byte.and(that: Byte): Int
infix fun Byte.and(that: Int): Int
infix fun Int.and(that: Byte): Int
Link copied to clipboard
fun ByteArray.arrayCopy(srcPos: Int = 0, des: ByteArray, desPos: Int = 0)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun buildByteArray(block: ByteArrayBuilder.() -> Unit): ByteArray

Creates a new ByteArrayBuilder instance, calls block with the builder as receiver, finally returning the ByteArray generated by call to ByteArrayBuilder.build.

Link copied to clipboard
Link copied to clipboard
fun ByteArray.saveAt(pathName: String): Boolean
Link copied to clipboard
infix fun Byte.shl(that: Byte): Int
infix fun Byte.shl(that: Int): Int
infix fun Int.shl(that: Byte): Int
Link copied to clipboard
infix fun Byte.shr(that: Byte): Int
infix fun Byte.shr(that: Int): Int
infix fun Int.shr(that: Byte): Int
Link copied to clipboard
infix fun ByteArray.xor(other: ByteArray): ByteArray

Xor two bytes array together, byte per byte.