Add dedicated function to calculate length of Base64 encoded string
I noticed this API was a bit clunky when working to remove it
from our public API. I don't expect any major performance improvements
(since when the encoding destination buffer was null, we skipped
the actual encoding), but hopefully things are a bit more readable.
Change-Id: I30b1fd597038091badd3b12b0a2e596f26610593
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/763256
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
8 files changed