Package 

Class ByteArrayExtKt

    • Method Summary

      Modifier and Type Method Description
      final static String toHexString(ByteArray $self) Converts a ByteArray to its corresponding hexadecimal String representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.