Expand description
This crate provides an encoder/decoder for Reed-Solomon erasure code.
Please note that erasure coding means errors are not directly detected or corrected, but missing data pieces(shards) can be reconstructed given that the configuration provides high enough redundancy.
You will have to implement error detection separately(e.g. via checksums) and simply leave out the corrupted shards when attempting to reconstruct the missing data.
Macros§
- convert_
2D_ slices - Makes it easier to work with 2D slices, arrays, etc.
- shard
- Constructs a shard.
- shards
- Constructs vector of shards.
Structs§
- Reed
Solomon - Reed-Solomon erasure code encoder/decoder.
- Shard
ByShard - Bookkeeper for shard by shard encoding.
Enums§
- Error
- Parallel
Param - Parameters for parallelism.
- SBSError
Functions§
- make_
blank_ shard - Makes shard with byte array filled with zeros of some length.
- make_
blank_ shards - make_
zero_ len_ shard - Makes shard with byte array of zero length.
- make_
zero_ len_ shards - option_
shards_ into_ shards - Transforms vector of option shards into vector of shards.
- option_
shards_ to_ shards - Transforms slice of option shards to vector of shards.
- shards_
into_ option_ shards - Transforms vector of shards into vector of option shards.
- shards_
to_ option_ shards - Transforms slice of shards to vector of option shards.
Type Aliases§
- Shard
- Convenience data type provided by this library.