@@ -2888,13 +2888,6 @@ extension Data {
2888
2888
/// When a maximum line length is set, specify that the line ending to insert should include a line feed.
2889
2889
public static let endLineWithLineFeed = Base64EncodingOptions ( rawValue: 1 << 5 )
2890
2890
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 )
2898
2891
}
2899
2892
2900
2893
@available ( macOS 10 . 10 , iOS 8 . 0 , watchOS 2 . 0 , tvOS 9 . 0 , * )
@@ -2918,6 +2911,15 @@ extension Data {
2918
2911
}
2919
2912
#endif //!FOUNDATION_FRAMEWORK
2920
2913
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
+ }
2921
2923
2922
2924
@available ( macOS 10 . 10 , iOS 8 . 0 , watchOS 2 . 0 , tvOS 9 . 0 , * )
2923
2925
extension Data : CustomStringConvertible , CustomDebugStringConvertible , CustomReflectable {
0 commit comments