[][src]Function sequoia_openpgp_ffi::parse::pgp_packet_parser_from_bytes

#[no_mangle]
pub extern "C" fn pgp_packet_parser_from_bytes(
    errp: Option<&mut *mut Error>,
    b: *const u8,
    len: size_t
) -> *mut PacketParserResult<'static>

Starts parsing OpenPGP packets stored in a buffer.

C Declaration

pgp_packet_parser_result_t
pgp_packet_parser_from_bytes (pgp_error_t *errp,
                              const uint8_t *b,
                              size_t len);

This function returns a PacketParser for the first packet in the stream.