[][src]Function opensc_sys::sc_read_record

pub unsafe extern "C" fn sc_read_record(
    card: *mut sc_card,
    rec_nr: c_uint,
    buf: *mut u8,
    count: size_t,
    flags: c_ulong
) -> c_int

Reads a record from the current (i.e. selected) file. @param card struct sc_card object on which to issue the command @param rec_nr SC_READ_RECORD_CURRENT or a record number starting from 1 @param buf Pointer to a buffer for storing the data @param count Number of bytes to read @param flags flags (may contain a short file id of a file to select) @retval number of bytes read or an error value