Returns the maximum number of bytes required to encode an input byte string of length `n` to base64.
| 35 | // Returns the maximum number of bytes required to |
| 36 | // encode an input byte string of length `n` to base64. |
| 37 | inline constexpr |
| 38 | size_t encoding_size(size_t n) |
| 39 | { |
| 40 | return 4 * ((n + 2) / 3); |
| 41 | } |
| 42 | |
| 43 | |
| 44 | // Returns the maximum number of bytes required |