dwrite
dwrite(dc, (void *)buf, PAGE_SIZE, dc->reset);
len = dwrite(dc, buf, wlen, ch->buf + ch->pos);
len = dwrite(dc, &ptr, sizeof(u_int32_t),