Structure

NSData.Base64EncodingOptions

Options for methods used to Base-64 encode data.

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

Base-64 Encoding

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

Returns a data object initialized with the given Base-64 encoded data.

init?(base64Encoded: String, options: NSData.Base64DecodingOptions = [])

Returns a data object initialized with the given Base-64 encoded string.

func base64EncodedData(options: NSData.Base64EncodingOptions = [])

Create a Base-64, UTF-8 encoded data object from the receiver's contents using the given options.

func base64EncodedString(options: NSData.Base64EncodingOptions = [])

Create a Base-64 encoded string from the receiver's contents using the given options.

struct NSData.Base64DecodingOptions

Options to modify the decoding algorithm used to decode Base-64 encoded data objects.

init?(base64Encoding: String)

Returns a data object initialized with the given Base-64 encoded string.

Deprecated
func base64Encoding()

Create a Base-64 encoded string from the receiver's contents.

Deprecated