* �����ݶ�����ָ���Ļ������� * @param fp {ACL_VSTREAM*} * @param buf {void*} Ŀ�껺���� * @param size {size_t} buf ��������С * @return {int} ���ض��������ݣ�����ֵ���£� * > 0 ��ǰ�����������е����ݳ��� * == 0 �Զ����ӹر� * < 0 ��������ʽ�±�ʾ�����������÷�������ʽʱҲ�᷵�� -1 */
| 365 | * < 0 ��������ʽ�±�ʾ�����������÷�������ʽʱҲ�᷵�� -1 |
| 366 | */ |
| 367 | static int read_to_buffer(ACL_VSTREAM *fp, void *buf, size_t size) |
| 368 | { |
| 369 | int n = sys_read(fp, buf, size); |
| 370 | |
| 371 | /* ����ֵӦ�÷��������Σ��Ա����ϲ������֪����������ȷԭ�� */ |
| 372 | #if 0 |
| 373 | if (n <= 0) { |
| 374 | return -1; |
| 375 | } |
| 376 | #endif |
| 377 | return n; |
| 378 | } |
| 379 | |
| 380 | static int read_buffed(ACL_VSTREAM *fp) |
| 381 | { |
no test coverage detected
searching dependent graphs…