Lines Matching refs:offUnsigned
235 uint64_t offUnsigned = off < 0 ? pThis->offCurPos : (uint64_t)off;
236 if (offUnsigned >= VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
241 pThis->offCurPos = offUnsigned;
248 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
252 *pcbRead = cbLeftToRead = (size_t)(VDGetSize(pThis->pDisk, VD_LAST_IMAGE) - offUnsigned);
268 offUnsigned += cbLeftToRead;
271 pThis->offCurPos = offUnsigned;
291 uint64_t offUnsigned = off < 0 ? pThis->offCurPos : (uint64_t)off;
292 if (offUnsigned >= VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
297 pThis->offCurPos = offUnsigned;
303 if (offUnsigned + pSgBuf->paSegs[0].cbSeg > VDGetSize(pThis->pDisk, VD_LAST_IMAGE))
307 *pcbWritten = cbLeftToWrite = (size_t)(VDGetSize(pThis->pDisk, VD_LAST_IMAGE) - offUnsigned);
323 offUnsigned += cbLeftToWrite;
326 pThis->offCurPos = offUnsigned;