corda / net.corda.core.utilities / kotlin.ByteArray

Extensions for kotlin.ByteArray

sequence

fun ByteArray.sequence(offset: Int = 0, size: Int = this.size): ByteSequence

Wrap size bytes from this ByteArray starting from offset into a new ByteArray.

toBase58

fun ByteArray.toBase58(): String

Convert a byte array to a Base58 encoded String.

toBase64

fun ByteArray.toBase64(): String

Convert a byte array to a Base64 encoded String.

toHex

fun ByteArray.toHex(): String

Convert a byte array to a hex (Base16) capitalized encoded String.

toHexString

fun ByteArray.toHexString(): String

Converts this ByteArray into a String of hexadecimal digits.