bch_control

Struct bch_control 

Source
#[repr(C)]
pub struct bch_control {
Show 16 fields pub m: c_uint, pub n: c_uint, pub t: c_uint, pub ecc_bits: c_uint, pub ecc_bytes: c_uint, pub a_pow_tab: *mut u16, pub a_log_tab: *mut u16, pub mod8_tab: *mut u32, pub ecc_buf: *mut u32, pub ecc_buf2: *mut u32, pub xi_tab: *mut c_uint, pub syn: *mut c_uint, pub cache: *mut c_int, pub elp: *mut gf_poly, pub poly_2t: [*mut gf_poly; 4], pub databuf: *mut u8,
}
Expand description

struct bch_control - BCH control structure @m: Galois field order @n: maximum codeword size in bits (= 2^m-1) @t: error correction capability in bits @ecc_bits: ecc exact size in bits, i.e. generator polynomial degree (<=mt) @ecc_bytes: ecc max size (mt bits) in bytes @a_pow_tab: Galois field GF(2^m) exponentiation lookup table @a_log_tab: Galois field GF(2^m) log lookup table @mod8_tab: remainder generator polynomial lookup tables @ecc_buf: ecc parity words buffer @ecc_buf2: ecc parity words buffer @xi_tab: GF(2^m) base for solving degree 2 polynomial roots @syn: syndrome buffer @cache: log-based polynomial representation buffer @elp: error locator polynomial @poly_2t: temporary polynomials of degree 2t

Fields§

§m: c_uint§n: c_uint§t: c_uint§ecc_bits: c_uint§ecc_bytes: c_uint§a_pow_tab: *mut u16§a_log_tab: *mut u16§mod8_tab: *mut u32§ecc_buf: *mut u32§ecc_buf2: *mut u32§xi_tab: *mut c_uint§syn: *mut c_uint§cache: *mut c_int§elp: *mut gf_poly§poly_2t: [*mut gf_poly; 4]§databuf: *mut u8

Trait Implementations§

Source§

impl Clone for bch_control

Source§

fn clone(&self) -> bch_control

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for bch_control

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for bch_control

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.