Function pnm::pbm::plain::encode_into

source ·
pub unsafe fn encode_into(x: Input<'_>, out: *mut u8) -> usize
Expand description

Encodes directly into a buffer. Returns number of bytes written. Buffer should have at least size bytes.

§Safety

Undefined Behaviour when the buffer’s length is less than size(bytes).