Skip to content

Commit

Permalink
Issue #5 : update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ypo committed Nov 26, 2023
1 parent e7959f9 commit dc1bfa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);

```

Expand Down

0 comments on commit dc1bfa2

Please sign in to comment.