Function bearssl::br_pem_decoder_push [] [src]

pub unsafe extern "C" fn br_pem_decoder_push(
    ctx: *mut br_pem_decoder_context,
    data: *const c_void,
    len: usize
) -> usize

\brief Push some bytes into the decoder.

Returned value is the number of bytes actually consumed; this may be less than the number of provided bytes if an event is raised. When an event is raised, it must be read (with br_pem_decoder_event()); until the event is read, this function will return 0.

\param ctx decoder context. \param data new data bytes. \param len number of new data bytes. \return the number of bytes actually received (may be less than len).