Function asn1::write

source ·
pub fn write<F: Fn(&mut Writer<'_>) -> WriteResult>(
    f: F
) -> WriteResult<Vec<u8>>
Expand description

Constructs a writer and invokes a callback which writes ASN.1 elements into the writer, then returns the generated DER bytes.