E6_BUFSIZE
if ((buf = calloc(1, E6_BUFSIZE)) == NULL) {
E6_BUFSIZE);
uint32_t toread = MIN(len, E6_BUFSIZE);