MCPcopy Create free account
hub / github.com/acl-dev/acl / read_to_buffer

Function read_to_buffer

lib_acl/src/stdlib/acl_vstream.c:367–378  ·  view source on GitHub ↗

* �����ݶ�����ָ���Ļ������� * @param fp {ACL_VSTREAM*} * @param buf {void*} Ŀ�껺���� * @param size {size_t} buf ��������С * @return {int} ���ض��������ݣ�����ֵ���£� * > 0 ��ǰ�����������е����ݳ��� * == 0 �Զ����ӹر� * < 0 ��������ʽ�±�ʾ�����������÷�������ʽʱҲ�᷵�� -1 */

Source from the content-addressed store, hash-verified

365 * < 0 ��������ʽ�±�ʾ�����������÷�������ʽʱҲ�᷵�� -1
366 */
367static 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
380static int read_buffed(ACL_VSTREAM *fp)
381{

Callers 4

read_buffedFunction · 0.85
acl_vstream_readnFunction · 0.85
acl_vstream_readFunction · 0.85
acl_vstream_read_peek3Function · 0.85

Calls 1

sys_readFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…