Experiment with asByteArray()

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-07-07 21:19:20 +02:00
1 parent 8fb4f91374
commit 9751f80347
3 files changed
+24 -7

No files matched your search

@@ -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
}