github vapor/vapor 4.0.0-rc.3.5
Provide the hex encoding utilities on Sequences

latest releases: 4.95.0, 4.94.1, 4.94.0...
pre-release4 years ago
This patch was authored and released by @gwynne.
  • Might as well let Sequences have them as well as Collections
  • Make hexEncodedBytes() public, why wouldn't it be?
  • Specialize hexEncodedBytes() on Collection to use a (theoretically) more efficient method. It's probably a completely unmeasurable difference in practice.
  • Add unit test to make sure it works on Sequences properly. (Sure, it crashes if you try something like sequence(0) { $0 + 1 }.hex, but that's to be expected. Maybe at some point a length limit check can be added.)

Don't miss a new vapor release

NewReleases is sending notifications on new releases.