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

Function acl_vstream_readable

lib_acl/src/stdlib/acl_vstream.c:1433–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1431}
1432
1433int acl_vstream_readable(ACL_VSTREAM *fp)
1434{
1435 if (fp == NULL) {
1436 acl_msg_error("%s(%d), %s: fp null",
1437 __FILE__, __LINE__, __FUNCTION__);
1438 return 1;
1439 }
1440
1441 if (acl_vstream_can_read(fp) != 0) {
1442 return 1;
1443 }
1444
1445 if (acl_readable(ACL_VSTREAM_SOCK(fp)) == 0) {
1446 return 0;
1447 }
1448
1449 fp->read_ready = 1;
1450 return 1;
1451}
1452
1453static int file_write_once(ACL_VSTREAM *fp, const void *vptr, int dlen)
1454{

Callers 1

readableMethod · 0.85

Calls 3

acl_msg_errorFunction · 0.85
acl_vstream_can_readFunction · 0.85
acl_readableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…