Function der_parser::ber::ber_encode_object [−][src]
pub fn ber_encode_object<'a, 'b: 'a, W: Write + Default + AsRef<[u8]> + 'a>(
obj: &'b BerObject<'_>
) -> impl SerializeFn<W> + 'a
This is supported on crate feature
serialize
only.Expand description
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.
Tagged
objects will be encoded as EXPLICIT.
This function is only available if the serialize
feature is enabled.