Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base64 and other types from Data #493

Open
adam-fowler opened this issue Mar 18, 2024 · 0 comments
Open

Base64 and other types from Data #493

adam-fowler opened this issue Mar 18, 2024 · 0 comments

Comments

@adam-fowler
Copy link

What are the thoughts on extending the Base64 code to support all Collection types where Element is UInt8 instead of just Data. eg

extension Collection where Element == UInt8 {
    init?(
        base64Encoded: String,
        options: Data.Base64DecodingOptions
    ) {
    }

    func base64EncodedString(options: Data.Base64EncodingOptions) -> String {
        return "base64"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant