encoded_buffer_size

Function encoded_buffer_size 

Source
pub const fn encoded_buffer_size(value_length: usize) -> Option<usize>
Expand description

Get the required size of the output buffer passed to encode_cookie for the given input buffer length

This will always be larger than the size of the decoded buffer.

Returns None if the calculation would overflow a usize. This happens somewhere around usize::MAX/2, so shouldn’t happen on 64 bit platforms unless you have more RAM than the CIA.