VirtualBox

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


Ignore:
Timestamp:
May 24, 2023 9:57:27 PM (18 months ago)
Author:
vboxsync
Message:

IPRT/sg: Corrected RTSgBufIsAtEnd and made the code deal with (skip) empty segments. Added a testcase (incomplete). [scm]

File:
1 edited

Legend:

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

    r99960 r99961  
    215215/**
    216216 * Clones a given S/G buffer.
    217  * 
     217 *
    218218 * This is only a shallow copy.  Both S/G buffers will point to the same segment
    219  * array. 
    220  * 
     219 * array.
     220 *
    221221 * The buffer position will be preserved.
    222  * 
     222 *
    223223 * @param   pSgBufNew    The new S/G buffer to clone to.
    224224 * @param   pSgBufOld    The source S/G buffer to clone from.
     
    394394 * Returns whether the given S/G buffer is zeroed out from the current position
    395395 * upto the number of bytes to check.
    396  * 
     396 *
    397397 * @retval  true if the buffer has only zeros
    398398 * @retval  false otherwise.
    399399 * @param   pSgBuf      The S/G buffer.
    400  * @param   cbCheck     Number of bytes to check. 
    401  * 
     400 * @param   cbCheck     Number of bytes to check.
     401 *
    402402 * @note    This operation advances the internal buffer pointer of the S/G buffer.
    403403 */
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