-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Avoid circular reference between fileUtils and CodecsUtils, which w…
…ill cause compilation failure in iOS environment (#2223)
- Loading branch information
1 parent
44b0025
commit 5f9f52a
Showing
5 changed files
with
31 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
composeApp/src/commonMain/kotlin/com/crosspaste/utils/StringUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.crosspaste.utils | ||
|
||
fun StringBuilder.appendHex(value: ULong) { | ||
for (i in 0 until 8) { | ||
val byte = (value shr i * 8).toByte() | ||
append(HEX_DIGITS[(byte.toInt() shr 4) and 0xf]) | ||
append(HEX_DIGITS[byte.toInt() and 0xf]) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
composeApp/src/desktopTest/kotlin/com/crosspaste/utils/MurmurHash3Test.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters