Closed holtwick closed 1 year ago
Thanks @holtwick for sharing!
I'm currently cleanup up old tickets and I want to close this issue as well as it's not immediately actionable.
@holtwick wondering if you ever got around to implementing an encoder/decoder on Swift? Looking at doing something similar shortly.
@michaelmedellin I will not implement encoder/decoder on Swift in the near future. There is currently no project where I need to use it. So go for it :) You may use my code if it is useful for you. Consider it being MIT licensed.
@holtwick thanks for the quick reply! appreciate the offer for using your code. I may just do so!
Just in case somebody needs a starting point for decode/encoder in Swift here is some code. Since the variable encoding of integers is one of the trickiest parts of it, these are examples of this functionality. The rest should be pretty straight forward. Maybe there is some place for it somewhere...
This is a unit test: