add: fromBase64 — Base64 decode counterpart of toBase64#177
Merged
Conversation
Core has had toBase64 (a documented API) without its inverse; consumers (e.g. supervisors decoding tc_get_screenshot's base64 payload) had to vendor a decoder. fromBase64(string) -> vector<unsigned char>; padding, whitespace and other non-alphabet bytes are skipped, so line-wrapped/MIME input decodes fine. For images, combine with Image::loadFromMemory. Pipeline: api-reference.toml (en/ja/ko, check.js --strict green), luagen regen (fromBase64 bound; shard redistribution from the fixed 16-way split), bindcheck 426 functions present / 0 missing / 0 call failures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core has had
toBase64(a documented API) without its inverse — consumers such as supervisors decodingtc_get_screenshot's base64 payload had to vendor their own decoder.fromBase64(const string&) -> vector<unsigned char>in tcUtils.h, right belowtoBase64=), whitespace, and other non-alphabet bytes are skipped, so line-wrapped / MIME-style input decodes fineImage::loadFromMemoryDocs/bindings pipeline fully regenerated:
api-reference.tomlen/ja/ko entry (+toBase64related link) —check.js --strictgreen (0 orphan / 0 undocumented)fromBase64bound; shard diffs are the fixed 16-way split redistributing typesWeb data (trussc.org generated JS) regenerated separately; will be committed to trussc.org after merge.