Struct reed_solomon::Buffer [] [src]

pub struct Buffer { /* fields omitted */ }

Buffer for block encoded data

Example

use reed_solomon::Buffer;

let buffer = Buffer::from_slice(&[1, 2, 3, 4], 2);
assert_eq!(&[1, 2], buffer.data());
assert_eq!(&[3, 4], buffer.ecc());

Methods

impl Buffer
[src]

[src]

Create buffer from internal polynom

[src]

Create buffer from [u8] slice

[src]

Slice with data of encoded block

[src]

Slice with error correction core of encoced block

[src]

Add byte string to the end of buffer

Trait Implementations

impl Debug for Buffer
[src]

[src]

Formats the value using the given formatter.

impl Copy for Buffer
[src]

impl Clone for Buffer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for Buffer
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Buffer
[src]

[src]

Mutably dereferences the value.

impl From<Polynom> for Buffer
[src]

[src]

Performs the conversion.