Clarify constant

This commit is contained in:
Cyryl Płotnicki 2021-05-16 11:26:31 +01:00
parent 5fde2887bd
commit 86fe8541c4

View file

@ -4,7 +4,7 @@ use anyhow::*;
use reed_solomon::Encoder;
use reed_solomon::{Buffer, Decoder};
const BLOCK_SIZE: usize = 255 - ECC_LENGTH;
const BLOCK_SIZE: usize = u8::MAX as usize - ECC_LENGTH;
const ECC_LENGTH: usize = 8;
// TODO: make the API streaming friendly