Add html dokka and ubyte array decode extension
This commit is contained in:
parent
48d81f257e
commit
6a87267ed6
@ -601,6 +601,16 @@ tasks {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dokkaHtml {
|
||||||
|
println("Dokka Html!")
|
||||||
|
dokkaSourceSets {
|
||||||
|
create("commonMain") {
|
||||||
|
displayName = "common"
|
||||||
|
platform = "common"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (getHostOsName() == "linux" && getHostArchitecture() == "x86-64") {
|
if (getHostOsName() == "linux" && getHostArchitecture() == "x86-64") {
|
||||||
val jvmTest by getting(Test::class) {
|
val jvmTest by getting(Test::class) {
|
||||||
testLogging {
|
testLogging {
|
||||||
|
@ -13,6 +13,10 @@ fun String.encodeToUByteArray() : UByteArray{
|
|||||||
return encodeToByteArray().asUByteArray()
|
return encodeToByteArray().asUByteArray()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun UByteArray.decodeFromUByteArray() : String {
|
||||||
|
return asByteArray().decodeToString()
|
||||||
|
}
|
||||||
|
|
||||||
fun UByteArray.toHexString() : String {
|
fun UByteArray.toHexString() : String {
|
||||||
return this.joinToString(separator = "") {
|
return this.joinToString(separator = "") {
|
||||||
if (it <= 0x0FU) {
|
if (it <= 0x0FU) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user