mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-10 13:05:48 +00:00
49c41e27b7
* add erasure coding support * add leopard support * erasure coding tests
20 lines
686 B
Nim
20 lines
686 B
Nim
## Nim-Dagger
|
|
## Copyright (c) 2022 Status Research & Development GmbH
|
|
## Licensed under either of
|
|
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
|
## * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
|
## at your option.
|
|
## This file may not be copied, modified, or distributed except according to
|
|
## those terms.
|
|
|
|
import ./erasure/erasure
|
|
import ./erasure/backends/leopard
|
|
|
|
export erasure
|
|
|
|
func leoEncoderProvider*(size, buffers, parity: int): EncoderBackend {.raises: [Defect].} =
|
|
LeoEncoderBackend.new(size, buffers, parity)
|
|
|
|
func leoDecoderProvider*(size, buffers, parity: int): DecoderBackend {.raises: [Defect].} =
|
|
LeoDecoderBackend.new(size, buffers, parity)
|