Function der_parser::ber::ber_encode_object_raw
source · pub fn ber_encode_object_raw<'a, 'b: 'a, 'c: 'a, W: Write + Default + AsRef<[u8]> + 'a>(
hdr: &'b Header<'_>,
content: &'c BerObjectContent<'_>
) -> impl SerializeFn<W> + 'a
Available on crate feature
serialize
only.Expand description
Encode header and object content as BER, without any validation
Note that the encoding will not check any `field of the header (including length) This can be used to craft invalid objects.
This function is only available if the serialize
feature is enabled.