Searched refs:hsize (Results 1 – 1 of 1) sorted by relevance
2572 uint32_t hsize, nsize; in JSON_write() local2580 hsize = strlen(str); in JSON_write()2581 nsize = htonl(hsize); in JSON_write()2585 if (Nwrite(fd, str, hsize, Ptcp) < 0) in JSON_write()2598 uint32_t hsize, nsize; in JSON_read() local2609 hsize = ntohl(nsize); in JSON_read()2611 str = (char *) calloc(sizeof(char), hsize+1); /* +1 for trailing null */ in JSON_read()2613 rc = Nread(fd, str, hsize, Ptcp); in JSON_read()2621 if (rc == hsize) { in JSON_read()