Function gstuff::binprint

source ·
pub fn binprint(bin: &[u8], blank: u8) -> String
Expand description

Helps logging binary data (particularly with text-readable parts, such as bencode, netstring) by replacing all the non-printable bytes with the blank character.