pyerasure.
Decoder
(field: Union[Binary, Binary4, Binary8], symbols: int, symbol_bytes: int)¶The decoder class is used to decode a set of encoded symbols.
SymbolStatus
(value)¶An enumeration.
block_bytes
: int¶The size of the block in bytes.
block_data
() bytes ¶Get the data of the block.
coefficients
(index: int) bytearray ¶Get the coefficients of a symbol.
decode_symbol
(symbol_data: bytearray, coefficients: bytearray)¶Feed a coded symbol to the decoder.
decode_systematic_symbol
(symbol_data: bytearray, index: int)¶Feed a systematic, i.e, un-coded symbol to the decoder.
is_complete
() bool ¶Check if the decoder is complete.
is_symbol_decoded
(index: int) bool ¶Check if a symbol is decoded.
is_symbol_missing
(index: int) bool ¶Check if a symbol is missing.
is_symbol_pivot
(index: int) bool ¶Check if a symbol is a pivot symbol.
rank
: int¶The rank of the decoding matrix.
recode_symbol
(coefficients_in: bytes) Tuple[bytes, bytearray] ¶Recodes a new symbol based on given the coefficients and current state of the decoder.
symbol_bytes
: int¶The size of a symbol in bytes.
symbol_data
(index: int) bytearray ¶Get the data of a symbol.
symbols
: int¶The number of symbols.