Changeset 40028 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Feb 7, 2012 11:12:47 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76151
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/dvm.h
r37270 r40028 200 200 201 201 /** 202 * Returns whether the supplied range is at least partially intersecting 203 * with the given volume. 204 * 205 * @returns whether the range intersects with the volume. 206 * @param hVolFmt The format specific volume handle. 207 * @param offStart Start offset of the range. 208 * @param cbRange Size of the range to check in bytes. 209 * @param poffVol Where to store the offset of the range from the 210 * start of the volume if true is returned. 211 * @param pcbIntersect Where to store the number of bytes intersecting 212 * with the range if true is returned. 213 */ 214 DECLCALLBACKMEMBER(bool, pfnVolumeIsRangeIntersecting)(RTDVMVOLUMEFMT hVolFmt, 215 uint64_t offStart, size_t cbRange, 216 uint64_t *poffVol, 217 size_t *pcbIntersect); 218 219 /** 202 220 * Read data from the given volume. 203 221 * … … 227 245 typedef const RTDVMFMTOPS *PCRTDVMFMTOPS; 228 246 247 /** Checks whether a range is intersecting. */ 248 #define RTDVM_RANGE_IS_INTERSECTING(start, size, off) ( (start) <= (off) && ((start) + (size)) > (off) ) 249 229 250 /** Converts a LBA number to the byte offset. */ 230 251 #define RTDVM_LBA2BYTE(lba, disk) ((lba) * (disk)->cbSector)
Note:
See TracChangeset
for help on using the changeset viewer.