diff options
author | Ed Tanous <ed@tanous.net> | 2023-12-13 21:49:58 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-01-22 22:15:20 +0300 |
commit | ee192c065cc658b2489d04c791e2fb956a331699 (patch) | |
tree | 2c15d1c4b547fc3fcdfbb81ce056787817002e51 /test/http/http_response_test.cpp | |
parent | 18f8f608b966c802b3e2a389e3c1ec5a1fd9407b (diff) | |
download | bmcweb-ee192c065cc658b2489d04c791e2fb956a331699.tar.xz |
Make base64 encoder incremental
As part of https://gerrit.openbmc.org/c/openbmc/bmcweb/+/67667, it would
be desirable if we could incrementally encode base64 in chunks. Given
that base64 encoding requires encoding 3 characters to 4, there's a
possibility that a chunk might not be mod 3 length.
This commit moves the base64 encoder into a class that can run
incrementally.
Tested: Unit tests pass. More tests in next commit.
Change-Id: Ic7da3fd4db865c99fcbd96ae06fdecb87628f94c
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'test/http/http_response_test.cpp')
0 files changed, 0 insertions, 0 deletions