Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/seniorjoinu/wirehair-rust-wrapper
- Owner: seniorjoinu
- Created: 2019-08-01T15:43:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-15T12:22:53.000Z (over 5 years ago)
- Last Synced: 2024-10-10T23:13:29.530Z (about 1 month ago)
- Topics: fec, fountain-codes, rust-lang
- Language: C++
- Homepage:
- Size: 99.6 KB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 {}
```