pub fn encode_voice_eot(
out: &mut [u8],
stream_id: StreamId,
seq: u8,
) -> Result<usize, EncodeError>Expand description
Encode a 27-byte voice EOT packet.
Same shape as encode_voice_data but:
[14]:seq | 0x40(EOT bit set)[15..24]:AMBE_SILENCE[24..27]:DSTAR_SYNC_BYTES
§Errors
Returns EncodeError::BufferTooSmall if out.len() < 27.
§See also
ircDDBGateway/Common/AMBEData.cpp:317-345 — the
getDExtraData encoder produces the same 27-byte layout regardless
of isEnd(); the caller is expected to set m_outSeq |= 0x40 and
fill m_data with silence + sync bytes before invoking it.