[][src]Function der_parser::ber::ber_encode_object

pub fn ber_encode_object<'a, 'b: 'a, W: Write + Default + AsRef<[u8]> + 'a>(
    obj: &'b BerObject
) -> impl SerializeFn<W> + 'a

Encode object as BER

Note that the encoding will not check that the values of the BerObject fields are correct. The length is automatically calculated, and the field is ignored.

ContextSpecific objects will be encoded as EXPLICIT.

This function is only available if the serialize feature is enabled.