Skip to content

Commit 9ba5089

Browse files
SessionHero01SessionHero01
authored andcommitted
Bytes toString
1 parent 5356b15 commit 9ba5089

File tree

1 file changed

+4
-0
lines changed
  • library/src/main/java/network/loki/messenger/libsession_util/util

1 file changed

+4
-0
lines changed

library/src/main/java/network/loki/messenger/libsession_util/util/Bytes.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class Bytes(val data: ByteArray) {
1818
return data.contentHashCode()
1919
}
2020

21+
override fun toString(): String {
22+
return "Bytes(${data.size} bytes)"
23+
}
24+
2125
companion object {
2226
fun ByteArray.toBytes(): Bytes {
2327
return Bytes(this)

0 commit comments

Comments
 (0)