[−][src]Function opensc_sys::sc_compacttlv_find_tag
pub unsafe extern "C" fn sc_compacttlv_find_tag(
buf: *const u8,
len: size_t,
tag: u8,
outlen: *mut size_t
) -> *const u8
Find a given tag in a compact TLV structure @param[in] buf input buffer holding the compact TLV structure @param[in] len length of the input buffer @buf in bytes @param[in] tag compact tag to search for - high nibble: plain tag, low nibble: length. If length is 0, only the plain tag is used for searching, in any other case, the length must also match. @param[out] outlen pointer where the size of the buffer returned is to be stored @return pointer to the tag value found within @buf, or NULL if not found/on error