Closed s3bk closed 3 years ago
Sometimes you just want to get data (de)compressed and don't really have the patience to look at the elegance of a very finely adjustable system.
For those cases I propose adding these functions:
fn encode(data: &[u8], order: BitOrder, size) -> Vec<u8>
fn encode_tiff(data: &[u8], order: BitOrder, size) -> Vec<u8>
fn decode(data: &[u8], order: BitOrder, size) -> Vec<u8>
fn decode_tiff(data: &[u8], order: BitOrder, size) -> Vec<u8>
In reality the decode functions would probably return a Result instead.
Sometimes you just want to get data (de)compressed and don't really have the patience to look at the elegance of a very finely adjustable system.
For those cases I propose adding these functions:
fn encode(data: &[u8], order: BitOrder, size) -> Vec<u8>
fn encode_tiff(data: &[u8], order: BitOrder, size) -> Vec<u8>
fn decode(data: &[u8], order: BitOrder, size) -> Vec<u8>
fn decode_tiff(data: &[u8], order: BitOrder, size) -> Vec<u8>
In reality the decode functions would probably return a Result instead.