MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / encoding_size

Function encoding_size

include/jwt/base64.hpp:37–41  ·  view source on GitHub ↗

Returns the maximum number of bytes required to encode an input byte string of length `n` to base64.

Source from the content-addressed store, hash-verified

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

Callers 1

base64_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected