#include <concepts>
#include <cstddef>
#include <functional>
#include <vector>
#include "block.hpp"
Go to the source code of this file.
|
constexpr std::size_t | BUF_SIZE = 32 * 1024 |
| Number of 3- or 4-byte blocks in the input buffer.
|
|
◆ BASE64_MAIN
#define BASE64_MAIN |
( |
| T | ) |
int main(int, const char **argv) { return !cmd_main<T>(argv); } |
◆ cmd_decode()
◆ cmd_encode()
◆ cmd_main() [1/2]
bool cmd_main |
( |
const char ** | argv | ) |
|
◆ cmd_main() [2/2]
◆ output_size()
template<std::size_t N, std::size_t D>
std::size_t output_size |
( |
std::size_t | n | ) |
|
|
inlineconstexpr |
Calculates the size of the buffer required for the output, rounding up.
- Template Parameters
-
N | output block size. |
D | input block size. |
- Parameters
-
◆ round_to_block_size()
template<auto S, std::integral T>
T round_to_block_size |
( |
T | n | ) |
|
|
inlineconstexpr |
Rounds an integral value to a given block size, always towards infinity.
◆ BUF_SIZE
std::size_t BUF_SIZE = 32 * 1024 |
|
constexpr |
Number of 3- or 4-byte blocks in the input buffer.