VirtualBox

Changeset 40028 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Feb 7, 2012 11:12:47 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76151
Message:

Missing file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/dvm.h

    r37270 r40028  
    200200
    201201    /**
     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    /**
    202220     * Read data from the given volume.
    203221     *
     
    227245typedef const RTDVMFMTOPS *PCRTDVMFMTOPS;
    228246
     247/** Checks whether a range is intersecting. */
     248#define RTDVM_RANGE_IS_INTERSECTING(start, size, off) ( (start) <= (off) && ((start) + (size)) > (off) )
     249
    229250/** Converts a LBA number to the byte offset. */
    230251#define RTDVM_LBA2BYTE(lba, disk) ((lba) * (disk)->cbSector)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette