[−][src]Function asn1_der::der::length_field_size
pub fn length_field_size(length: usize) -> usize
Computes the size an encoded length-field would have for a given payload-length
Parameters:
length
: The payload-length you want to know the encoded size of
Returns the size the encoded length-field would have