VirtualBox

Changeset 44241 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 7, 2013 8:17:19 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83097
Message:

Runtime/sg.cpp: Add API to check a buffer for zeros

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r43291 r44241  
    11731173# define RTSgBufCopyToBuf                               RT_MANGLER(RTSgBufCopyToBuf)
    11741174# define RTSgBufInit                                    RT_MANGLER(RTSgBufInit)
     1175# define RTSgBufIsZero                                  RT_MANGLER(RTSgBufIsZero)
    11751176# define RTSgBufReset                                   RT_MANGLER(RTSgBufReset)
    11761177# define RTSgBufSegArrayCreate                          RT_MANGLER(RTSgBufSegArrayCreate)
  • trunk/include/iprt/sg.h

    r38539 r44241  
    220220 */
    221221RTDECL(size_t) RTSgBufSegArrayCreate(PRTSGBUF pSgBuf, PRTSGSEG paSeg, unsigned *pcSeg, size_t cbData);
     222
     223/**
     224 * Returns whether the given S/G buffer is zeroed out from the current position
     225 * upto the number of bytes to check.
     226 *
     227 * @returns true if the buffer has only zeros
     228 *          false otherwise.
     229 * @param   pSgBuf      The S/G buffer.
     230 * @param   cbCheck     Number of bytes to check.
     231 */
     232RTDECL(bool) RTSgBufIsZero(PRTSGBUF pSgBuf, size_t cbCheck);
    222233
    223234/**
Note: See TracChangeset for help on using the changeset viewer.

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