encode_poll

Function encode_poll 

Source
pub fn encode_poll(
    out: &mut [u8],
    callsign: &Callsign,
) -> Result<usize, EncodeError>
Expand description

Encode a 9-byte keepalive poll.

Layout per ircDDBGateway/Common/PollData.cpp:155-168 (getDExtraData):

  • [0..8]: 8-byte space-padded callsign
  • [8]: 0x00

§Errors

Returns EncodeError::BufferTooSmall if out.len() < 9.

§See also

ircDDBGateway/Common/PollData.cpp:155-168 (getDExtraData) for the reference keepalive encoder.