VirtualBox

Ignore:
Timestamp:
Aug 25, 2011 10:06:11 PM (13 years ago)
Author:
vboxsync
Message:

Runtime/SgBuf: Add new method to get the next segment from the S/G buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/sg.cpp

    r36312 r38539  
    111111
    112112
     113RTDECL(void *) RTSgBufGetNextSegment(PRTSGBUF pSgBuf, size_t *pcbSeg)
     114{
     115    AssertPtrReturn(pSgBuf, NULL);
     116    AssertPtrReturn(pcbSeg, NULL);
     117
     118    if (!*pcbSeg)
     119        *pcbSeg = pSgBuf->cbSegLeft;
     120
     121    return sgBufGet(pSgBuf, pcbSeg);
     122}
     123
     124
    113125RTDECL(size_t) RTSgBufCopy(PRTSGBUF pSgBufDst, PRTSGBUF pSgBufSrc, size_t cbCopy)
    114126{
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