From dc1bfa27f8a51a7363cca1609aa3ee110ccac1fd Mon Sep 17 00:00:00 2001 From: Yannick Poirier Date: Sun, 26 Nov 2023 09:39:55 +0100 Subject: [PATCH] Issue #5 : update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e60569f..1d82073 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,10 @@ for esi in 0..n as u32 { ```rust let encoding_symbol_length = 1024; -let source_block_size = 4; // Number of source symbols in the source block +let nb_source_symbols = 4; // Number of source symbols in the source block +let source_block_length = encoding_symbol_length * nb_source_symbols; // Total size size of the block; let mut n = 0u32; -let mut decoder = raptor_code::SourceBlockDecoder::new(source_block_size); +let mut decoder = raptor_code::SourceBlockDecoder::new(nb_source_symbols); while decoder.fully_specified() == false { //TODO replace the following line with pkt received from network @@ -77,8 +78,7 @@ while decoder.fully_specified() == false { n += 1; } -let source_block_size = encoding_symbol_length * source_block_size; -let source_block = decoder.decode(source_block_size as usize); +let source_block = decoder.decode(source_block_length as usize); ```