Lines Matching refs:length
263 //printf("### indirect-run[%ld] = (%ld,%d,%d), offset = %lld\n",fCurrent,fRun.allocation_group,fRun.start,fRun.length,fRunFileOffset);
284 //printf("### run[%ld] = (%ld,%d,%d), offset = %lld\n",fCurrent,fRun.allocation_group,fRun.start,fRun.length,fRunFileOffset);
298 // set/check boundaries for pos/length
307 size_t length = *_length;
309 if (pos + (off_t)length > data.Size())
310 length = data.Size() - pos;
331 run.length = HOST_ENDIAN_TO_BFS_INT16(run.Length()
341 if (length < bytesRead)
342 bytesRead = length;
347 length -= bytesRead;
348 if (length == 0) {
365 while (length > 0) {
369 run.length = HOST_ENDIAN_TO_BFS_INT16(run.Length()
372 if (uint32(run.Length() << blockShift) > length) {
373 if (length < blockSize) {
379 memcpy(buffer + bytesRead, block, length);
380 bytesRead += length;
383 run.length = HOST_ENDIAN_TO_BFS_INT16(length >> blockShift);
394 length -= bytes;
396 if (length == 0)
405 run.length = 1;