Lines Matching refs:len
96 FlushBlock(uint64_t offset, const void *buf, size_t len)
99 assert(len <= blockSize);
101 pwrite(diskfd, buf, len, offset);
102 if (len != blockSize) {
103 pwrite(diskfd, zerobuf, blockSize - len, offset + len);
109 AppendBlock(const void *buf, size_t len)
113 FlushBlock(offset, buf, len);
145 int len = read(fd, tempbuf, blockSize);
146 if (len < 0) {
150 if (len == 0) {
155 node.direct[i].offset = AppendBlock(tempbuf, len);
156 node.size += (uint64_t)len;