Structure

NSData.Base64EncodingOptions

Options for methods used to Base64 encode data.

Declaration

struct Base64EncodingOptions

Topics

Constants

static var lineLength64Characters: NSData.Base64EncodingOptions

Set the maximum line length to 64 characters, after which a line ending is inserted.

static var lineLength76Characters: NSData.Base64EncodingOptions

Set the maximum line length to 76 characters, after which a line ending is inserted.

static var endLineWithCarriageReturn: NSData.Base64EncodingOptions

When a maximum line length is set, specify that the line ending to insert should include a carriage return.

static var endLineWithLineFeed: NSData.Base64EncodingOptions

When a maximum line length is set, specify that the line ending to insert should include a line feed.

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.Base64DecodingOptions

Options to modify the decoding algorithm used to decode Base64 encoded 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