-
public final class ByteArrayExtKt
-
-
Method Summary
Modifier and Type Method Description final static StringtoHexString(ByteArray $self)Converts a ByteArray to its corresponding hexadecimal String representation. -
-
Method Detail
-
toHexString
final static String toHexString(ByteArray $self)
Converts a ByteArray to its corresponding hexadecimal String representation.
Each byte in the array is converted into two hexadecimal characters. For example, the byte array
[0xA, 0x1F]will be converted to the string"0a1f".This method avoids performance overhead by using bitwise operations and minimizing object allocations compared to alternatives like
joinToString.
-
-
-
-