modq_encode

Function modq_encode 

Source
pub fn modq_encode(h: &[u16], d: &mut [u8]) -> usize
Expand description

Encode integers modulo 12289 into bytes, with 14 bits per value.

Encode the provided sequence of integers modulo q = 12289 into the destination buffer d. Exactly 14 bits are used for each value. The values MUST be in the [0,q-1] range. The number of source values MUST be a multiple of 4.