[][src]Function framed::bytes::max_encoded_len

pub fn max_encoded_len(payload_len: usize) -> usize

Returns an upper bound for the encoded length of a frame with the payload length supplied.

Useful for calculating an appropriate buffer length.