String
struct String
-
A UTF-8-encoded byte array representation of the string.
Declaration
Swift
public var utf8Bytes: Bytes { get } -
Turn a hex-encoded string into a byte array.
Declaration
Swift
public func unhexlify(ignore: String? = nil) -> Bytes?Parameters
ignoreA set of characters that should be ignored.
Return Value
A byte array if decoding is successful,
nilelse. -
Turn a Base64-encoded string into a byte array.
Declaration
Swift
public func b64decode(ignore: String? = nil) -> Bytes?Parameters
ignoreA set of characters that should be ignored.
Return Value
A byte array if decoding is successful,
nilelse.
View on GitHub
String Extension Reference