Struct reed_solomon_erasure::ReedSolomon [] [src]

pub struct ReedSolomon { /* fields omitted */ }

Reed-Solomon erasure code encoder/decoder

Remarks

Notes about usage of offset and byte_count for all methods/functions below

offset refers to start of the shard you want to as starting point for encoding/decoding.

offset defaults to 0 if it is None

byte_count refers to number of bytes, starting from offset to use for encoding/decoding.

byte_count defaults to length of shard if it is None

Methods

impl ReedSolomon
[src]

[src]

Creates a new instance of Reed-Solomon erasure code encoder/decoder

[src]

[src]

[src]

[src]

Constructs parity shards

Remarks

This overwrites data in the parity shard slots

Panics when the shards are of different sizes, number of shards does not match codec's configuration, or when the shards' length is shorter than required

[src]

Verify correctness of parity shards

[src]

Reconstruct missing shards

Remarks

Panics when the shards are of different sizes, number of shards does not match codec's configuration, or when the shards' length is shorter than required

Trait Implementations

impl PartialEq for ReedSolomon
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for ReedSolomon
[src]

[src]

Formats the value using the given formatter.

impl Clone for ReedSolomon
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more