MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / read_all

Function read_all

yolo_detector/darknet_opt/src/utils.c:399–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void read_all(int fd, char *buffer, size_t bytes)
400{
401 size_t n = 0;
402 while(n < bytes){
403 int next = read(fd, buffer + n, bytes-n);
404 if(next <= 0) error("read failed");
405 n += next;
406 }
407}
408
409void write_all(int fd, char *buffer, size_t bytes)
410{

Callers

nothing calls this directly

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected