pub fn encode_value( value: &Value, format: Format, ) -> Result<(Vec<u8>, u32), Error>
Encode a dynamic Value to the specified format.
Returns the encoded bytes and the appropriate OID.