Skip to content

Function framing::escaped_len

zaun_community_protocol::framing::escaped_len · Function

pub fn escaped_len(text: &str) -> usize

The bytes text takes written inside a JSON string, as a frame message travels in its application data: " and \ take two, the control characters JSON writes as \b, \t, \n, \f, \r two, every other control character six (\u00XX).

Full rustdoc page