Skip to main content

encode_message

Function encode_message 

Source
pub fn encode_message(
    out: &mut Vec<u8>,
    begin_string: &[u8],
    msg_type: &[u8],
    fields: &[(FixTag, &[u8])],
) -> Result<(), FixEncodeError>
Expand description

Encodes a FIX tag-value message into out.

out is cleared before encoding. Tags 8, 9, 35, and 10 are owned by this helper; pass application/session body fields through fields.

ยงErrors

Returns FixEncodeError when a field value contains SOH or a reserved tag is supplied in fields.