silc_ber_encoded_len

SYNOPSIS

    SilcUInt32 silc_ber_encoded_len(SilcUInt32 tag, SilcUInt32 data_len,
                                    SilcBool indefinite);

DESCRIPTION

Calculates the length of the encoded BER data object. This utility function can be used to calculate how much to allocate space before encoding with silc_ber_encode.