pyerasure.
Encoder
(field: Union[Binary, Binary4, Binary8], symbols: int, symbol_bytes: int)¶The encoder class is used to encode a set of symbols.
block_bytes
: int¶The size of the block in bytes.
encode_symbol
(coefficients: bytes) bytearray ¶Encode a symbol based on the given coefficients.
is_symbol_set
(index: int) bool ¶Check if a symbol is set.
rank
: int¶The rank of the encoding matrix, i.e., the number of symbols.
set_symbol
(index: int, symbol_data: bytes)¶Set a symbol.
set_symbols
(block_data: bytes)¶Set all symbols.
symbol_bytes
: int¶The size of a symbol in bytes.
symbol_data
(index: int) bytes ¶Get the data of a symbol.
symbols
: int¶The number of symbols.