@@ -2888,13 +2888,6 @@ extension Data {
28882888 /// When a maximum line length is set, specify that the line ending to insert should include a line feed.
28892889 public static let endLineWithLineFeed = Base64EncodingOptions ( rawValue: 1 << 5 )
28902890
2891- /// Use the base64url alphabet to encode the data
2892- @available ( FoundationPreview 6 . 3 , * )
2893- public static let base64URLAlphabet = Base64EncodingOptions ( rawValue: 1 << 6 )
2894-
2895- /// Omit the `=` padding characters in the end of the base64 encoded result
2896- @available ( FoundationPreview 6 . 3 , * )
2897- public static let omitPaddingCharacter = Base64EncodingOptions ( rawValue: 1 << 7 )
28982891 }
28992892
29002893 @available ( macOS 10 . 10 , iOS 8 . 0 , watchOS 2 . 0 , tvOS 9 . 0 , * )
@@ -2918,6 +2911,15 @@ extension Data {
29182911}
29192912#endif //!FOUNDATION_FRAMEWORK
29202913
2914+ extension Data . Base64EncodingOptions {
2915+ /// Use the base64url alphabet to encode the data
2916+ @available ( FoundationPreview 6 . 3 , * )
2917+ public static let base64URLAlphabet = Self ( rawValue: 1 << 6 )
2918+
2919+ /// Omit the `=` padding characters in the end of the base64 encoded result
2920+ @available ( FoundationPreview 6 . 3 , * )
2921+ public static let omitPaddingCharacter = Self ( rawValue: 1 << 7 )
2922+ }
29212923
29222924@available ( macOS 10 . 10 , iOS 8 . 0 , watchOS 2 . 0 , tvOS 9 . 0 , * )
29232925extension Data : CustomStringConvertible , CustomDebugStringConvertible , CustomReflectable {
0 commit comments