Structure

NSData.Base64DecodingOptions

Options to modify the decoding algorithm used to decode Base64 encoded data.

Declaration

struct Base64DecodingOptions

Topics

Constants

static var ignoreUnknownCharacters: NSData.Base64DecodingOptions

Modify the decoding algorithm so that it ignores unknown non-Base-64 bytes, including line ending characters.

Relationships

Conforms To

See Also

Encoding and Decoding Base64 Representations

init?(base64Encoded: Data, options: NSData.Base64DecodingOptions)

Initializes a data object with the given Base64 encoded data.

init?(base64Encoding: String)

Initializes a data object initialized with the given Base64 encoded string.

Deprecated
init?(base64Encoded: String, options: NSData.Base64DecodingOptions)

Initializes a data object with the given Base64 encoded string.

func base64EncodedData(options: NSData.Base64EncodingOptions) -> Data

Creates a Base64, UTF-8 encoded data object from the string using the given options.

func base64EncodedString(options: NSData.Base64EncodingOptions) -> String

Creates a Base64 encoded string from the string using the given options.

func base64Encoding() -> String

Initializes a Base64 encoded string from the string.

Deprecated
struct NSData.Base64EncodingOptions

Options for methods used to Base64 encode data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software