VirtualBox

Changeset 44241 in vbox for trunk/include/iprt/sg.h


Ignore:
Timestamp:
Jan 7, 2013 8:17:19 PM (12 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.

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