This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
hex strings #18
Labels
Milestone
Comments
Also base64 decode
|
We can't do this until Swift 4 because we can't add initializers to generic array extensions, let's revisit this at that point. |
It should be able to work exactly the same way that bytes.hexEncoded.string
string.bytes.hexDecoded |
Yup, we can add properties, just can't do the traditional convertible pattern we've been using w/ the initializer .... but actually, we might be able to do this w/ arrays at least in 3.1. It can't conform to a protocol, but the behavior could be there. Follow up, I'm 82% sure we have this functionality already, might just be different names. |
Yeah I think it's just the naming right now. Same issue we had with base64 where you can only go |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add the ability to init Bytes from a hex string and also to convert bytes to hex strings.
The text was updated successfully, but these errors were encountered: