I need access to the partition function for my decoder and i want to create a encoder from a ObjectTransmissionInformation

This commit is contained in:
Jonathan Nilsson 2020-10-21 18:13:11 +02:00 committed by Christopher Berner
parent c59a33343c
commit a81ca51f41
2 changed files with 2 additions and 1 deletions

@ -99,7 +99,7 @@ pub struct Encoder {
}
impl Encoder {
fn new(data: &[u8], config: ObjectTransmissionInformation) -> Encoder {
pub fn new(data: &[u8], config: ObjectTransmissionInformation) -> Encoder {
let mut block_encoders = vec![];
let mut cached_plan: Option<SourceBlockEncodingPlan> = None;
for (i, (start, end)) in calculate_block_offsets(data, &config).drain(..).enumerate() {

@ -22,6 +22,7 @@ mod symbol;
mod systematic_constants;
mod util;
pub use crate::base::partition;
pub use crate::base::EncodingPacket;
pub use crate::base::ObjectTransmissionInformation;
pub use crate::base::PayloadId;