Skip to content

Commit

Permalink
chore: add comment to extension function
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed May 15, 2023
1 parent ea140e1 commit 5060a51
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ class ExposedBlob(inputStream: InputStream) {

fun hexString(): String = bytes.toHexString()

/** Returns the hex-encoded string of a ByteArray. */
private fun ByteArray.toHexString(): String = joinToString(separator = "") { eachByte -> "%02x".format(eachByte) }
}

0 comments on commit 5060a51

Please sign in to comment.