arnaucube
arnaucube/poulpyPublic Self-hosted repository
removed Bytes
Jean-Philippe Bossuat jeanphilippe.bossuat@gmail.com
Fri, 14 Feb 2025 18:27:32 +0100
commit

19758b4736d053eb8c2c36b96ea6b49779e31852

parent

67d8fd31b74cf66f1fc077e3c0a54982f61deb03

1 files changed, 0 insertions(+), 23 deletions(-)

jump to
M base2k/src/module.rs → base2k/src/module.rs

@@ -61,26 +61,3 @@ unsafe { delete_module_info(self.0) }

drop(self); } } - -pub trait Bytes { - /// Returns the minimum number of bytes necessary to allocate - /// a new [VecZnxBig] through [VecZnxBig::from_bytes]. - fn bytes_of_vec_znx_big(&self, limbs: usize) -> usize; - - /// Returns the minimum number of bytes necessary to allocate - /// a new [VecZnxDft] through [VecZnxDft::from_bytes]. - fn vec_znx_idft_tmp_bytes(&self) -> usize; - - /// Returns a new [VecZnxDft] with the provided bytes array as backing array. - /// - /// # Arguments - /// - /// * `limbs`: the number of limbs of the [VecZnxDft]. - /// * `bytes`: a byte array of size at least [Module::bytes_of_vec_znx_dft]. - /// - /// # Panics - /// If `bytes.len()` < [Module::bytes_of_vec_znx_dft]. - fn bytes_of_vec_znx_dft(&self, limbs: usize) -> usize; - - fn vec_znx_big_normalize_tmp_bytes(&self) -> usize; -}