Experiment with asByteArray()
This commit is contained in:
1 parent
8fb4f91374
commit
9751f80347
3 files changed
+24
-7
No files matched your search
+9
@@ -5,3 +5,12 @@ package com.ionspin.kotlin.crypto.util
|
||||
* ugljesa.jovanovic@ionspin.com
|
||||
* on 22-Jun-2020
|
||||
*/
|
||||
@Suppress("CAST_NEVER_SUCCEEDS")
|
||||
fun ByteArray.asUByteArray() : UByteArray {
|
||||
return this as UByteArray
|
||||
}
|
||||
|
||||
@Suppress("CAST_NEVER_SUCCEEDS")
|
||||
fun UByteArray.asByteArray() : ByteArray {
|
||||
return this as ByteArray
|
||||
}
|
||||
Reference in new issue
Block a user