Skip to content

base64ct: refactor encoder functions#236

Merged
tarcieri merged 1 commit intomasterfrom
base64ct/refactor-encoder-functions
Jan 31, 2021
Merged

base64ct: refactor encoder functions#236
tarcieri merged 1 commit intomasterfrom
base64ct/refactor-encoder-functions

Conversation

@tarcieri
Copy link
Member

To make it easier to support the "crypt" encoding (which is slightly different from the others as the alphabet is shifted), this change refactors encoders to support an arbitrary encode_6bits function per-encoding.

@tarcieri
Copy link
Member Author

Given this requires a function-per-encoding, I'm beginning to wonder if it might be helpful to have an Encoding trait

To make it easier to support the "crypt" encoding (which is slightly
different from the others as the alphabet is shifted), this change
refactors encoders to support an arbitrary `encode_6bits` function
per-encoding.
@tarcieri tarcieri force-pushed the base64ct/refactor-encoder-functions branch from 4a9f1e9 to eb016e8 Compare January 31, 2021 18:37
@tarcieri tarcieri merged commit ff20f14 into master Jan 31, 2021
@tarcieri tarcieri deleted the base64ct/refactor-encoder-functions branch January 31, 2021 18:42
@tarcieri tarcieri mentioned this pull request Feb 1, 2021
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

Successfully merging this pull request may close these issues.

1 participant