📄 sc_read_binary.3
字号:
.TH sc_read_binary 3 "April 2003" "OpenSC Programmer's Manual.SH NAMEsc_read_binary, sc_write_binary, sc_update_binary \- read and write files on a smart card.SH SYNOPSIS.nf.B #include <opensc.h>.sp.BI "int sc_read_binary(sc_card_t *" card ",.BI " unsigned int " offset ",.BI " unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.BI "int sc_write_binary(sc_card_t *" card ",.BI " unsigned int " offset ",.BI " const unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.BI "int sc_update_binary(sc_card_t *" card ",.BI " unsigned int " offset ",.BI " const unsigned char *" buffer ",.BI " size_t " count ",.BI " unsigned long " flags ");.fi.SH DESCRIPTIONThese functions read and write transparent elementary files (EFs)on a smart card. The correspond to the ISO 7816 functionsREAD BINARY, WRITE BINARY and UPDATE BINARY, respectively.(The difference between write and update is that the formermeans writing to an uninitialized file, while the latteris intended to update a file region previously written to -some card have different access conditions for these operations)..PPThe \fIoffset\fP argument specifies the file offset in bytes.Note that some cards may not allow writing at arbitrary offsets.Some versions of the GPK require that read/write operations ontransparent files are aligned on a 4-byte boundary..PPThe \fIflags\fP argument is currently not used, and should be setto 0..SH RETURN VALUEIf an error occurred, a negative error code is returned, as describedin \fbsc_error\fP(3). Otherwise, the function will return thenumber of bytes read or written..SH SEE ALSO.BR sc_file (3),.BR sc_path (3),.BR sc_establish_context (3),.BR sc_select_file (3),.BR sc_read_record (3),.BR sc_delete_file (3),.BR sc_create_file (3),.BR sc_file_free (3)..SH AUTHORThis manual page was written by Olaf Kirch <okir@suse.de>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -