kmp-tor
Toggle table of contents
2.2.0
common
Platform filter
common
Switch theme
Search in API
kmp-tor
runtime-core
/
io.matthewnelson.kmp.tor.runtime.core.net
/
OnionAddress
/
Companion
Companion
object
Companion
(
source
)
Members
Functions
to
Onion
Address
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"get"
)
fun
ByteArray
.
toOnionAddress
(
)
:
OnionAddress
Transforms provided bytes into a
.onion
address.
@
JvmStatic
@
JvmName
(
name
=
"get"
)
fun
String
.
toOnionAddress
(
)
:
OnionAddress
Parses a String for any
.onion
address.
to
Onion
Address
Or
Null
Link copied to clipboard
@
JvmStatic
@
JvmName
(
name
=
"getOrNull"
)
fun
ByteArray
.
toOnionAddressOrNull
(
)
:
OnionAddress
?
Transforms provided bytes into a
.onion
address.
@
JvmStatic
@
JvmName
(
name
=
"getOrNull"
)
fun
String
.
toOnionAddressOrNull
(
)
:
OnionAddress
?
Parses a String for any
.onion
address.