Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seniorjoinu/wirehair-rust-wrapper

Rust wrapper for Wirehair - O(N) Fountain Code for Large Data
https://github.com/seniorjoinu/wirehair-rust-wrapper

fec fountain-codes rust-lang

Last synced: 23 days ago
JSON representation

Rust wrapper for Wirehair - O(N) Fountain Code for Large Data

Awesome Lists containing this project

README

        

Rust wrapper for Wirehair - O(N) Fountain Code for Large Data

Wirehair is a FEC library done by https://github.com/catid

### API
```rust
pub fn wirehair_init() -> Result<(), WirehairError> {}

pub fn WirehairEncoder::new(
message: &mut [u8],
message_size_bytes: u64,
block_size_bytes: u32
) -> WirehairEncoder {}

pub fn WirehairEncoder::encode(
&self,
block_id: u64,
block: &mut [u8],
block_size: u32,
block_out_bytes: &mut u32
) -> Result {}

pub fn WirehairDecoder::new(message_size_bytes: u64, block_size_bytes: u32) -> WirehairDecoder {}

pub fn WirehairDecoder::decode(
&self,
block_id: u64,
block: &[u8],
block_out_size_bytes: u32
) -> Result {}

pub fn WirehairDecoder::recover(
&self,
message: &mut [u8],
message_size_bytes: u64
) -> Result {}

pub fn wirehair_decoder_to_encoder(decoder: WirehairDecoder) -> Result {}
```