fn get_company_indices()

in protocol/src/cross_psi_xor/company.rs [303:315]


    fn get_company_indices(&self) -> TPayload {
        if let Ok(indices) = self.self_intersection_indices.clone().read() {
            let mut index_buffer: TPayload = Vec::with_capacity(indices.len());
            for index in indices.iter() {
                index_buffer.push(ByteBuffer {
                    buffer: (*index as u64).to_le_bytes().to_vec(),
                });
            }
            index_buffer
        } else {
            panic!("Unable to fetch company indices");
        }
    }