Skip to content

Commit

Permalink
I need access to the partition function for my decoder and i want to …
Browse files Browse the repository at this point in the history
…create a encoder from a ObjectTransmissionInformation
  • Loading branch information
JoNil authored and cberner committed Oct 23, 2020
1 parent c59a333 commit a81ca51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a81ca51

Please sign in to comment.