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
ignore
A set of characters that should be ignored.
Return Value
A byte array if decoding is successful,
nil
else. -
Turn a Base64-encoded string into a byte array.
Declaration
Swift
public func b64decode(ignore: String? = nil) -> Bytes?
Parameters
ignore
A set of characters that should be ignored.
Return Value
A byte array if decoding is successful,
nil
else.