Return status code instead of bool in IBlockEncoder & IBlockDecoder #738
Labels
easy hacks
The solution is expected to be straightforward even if you are new to the project
help wanted
An important and awaited task but we have no human resources for it yet
refactoring
Milestone
Summary
fec::IBlockEncoder and fec::IBlockDecoder are interfaces for codec-specific encoding and decoding of FEC packets used for packet loss recovery. See documentation.
Currently they both have
begin_block()
method that returns bool, which is true on success or false on error. We need to replace bool with status::StatusCode and return code that described why the operation failed.Implementation
Testing
test_block_encoder_decoder.cpp
to check that encoder/decoder returns StatusNoMem when allocation fails.test_block_writer_reader_errors.cpp
to check that writer/reader forward error from encoder/decoder to upper level.The text was updated successfully, but these errors were encountered: