Lines Matching refs:off
134 uint64_t off, uint64_t cbRange,
238 * @param off Where to start reading from.
242 DECLCALLBACKMEMBER(int, pfnVolumeRead)(RTDVMVOLUMEFMT hVolFmt, uint64_t off, void *pvBuf, size_t cbRead);
249 * @param off Where to start writing to.
253 DECLCALLBACKMEMBER(int, pfnVolumeWrite)(RTDVMVOLUMEFMT hVolFmt, uint64_t off, const void *pvBuf, size_t cbWrite);
262 #define RTDVM_RANGE_IS_INTERSECTING(start, size, off) ( (start) <= (off) && ((start) + (size)) > (off) )
267 #define RTDVM_BYTE2LBA(off, disk) ((off) / (disk)->cbSector)
285 * @param off Start offset.
289 DECLINLINE(int) rtDvmDiskRead(PCRTDVMDISK pDisk, uint64_t off, void *pvBuf, size_t cbRead)
294 AssertReturn(off + cbRead <= pDisk->cbDisk, VERR_INVALID_PARAMETER);
296 return pDisk->pfnRead(pDisk->pvUser, off, pvBuf, cbRead);
304 * @param off Start offset.
308 DECLINLINE(int) rtDvmDiskWrite(PCRTDVMDISK pDisk, uint64_t off, const void *pvBuf, size_t cbWrite)
313 AssertReturn(off + cbWrite <= pDisk->cbDisk, VERR_INVALID_PARAMETER);
315 return pDisk->pfnWrite(pDisk->pvUser, off, pvBuf, cbWrite);