VirtualBox

Changeset 44250 in vbox for trunk


Ignore:
Timestamp:
Jan 8, 2013 1:20:18 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83110
Message:

Runtime/sg.cpp: void * -> const void * in RTSgBufCopyFromBuf

Location:
trunk
Files:
2 edited

Legend:

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

    r44241 r44250  
    188188 * @returns Number of bytes copied.
    189189 * @param   pSgBuf       The S/G buffer to copy to.
    190  * @param   pvBuf        Buffer to copy the data into.
     190 * @param   pvBuf        Buffer to copy the data from.
    191191 * @param   cbCopy       How many bytes to copy.
    192192 *
    193193 * @note This operation advances the internal buffer pointer of the S/G buffer.
    194194 */
    195 RTDECL(size_t) RTSgBufCopyFromBuf(PRTSGBUF pSgBuf, void *pvBuf, size_t cbCopy);
     195RTDECL(size_t) RTSgBufCopyFromBuf(PRTSGBUF pSgBuf, const void *pvBuf, size_t cbCopy);
    196196
    197197/**
  • trunk/src/VBox/Runtime/common/misc/sg.cpp

    r44244 r44250  
    316316
    317317
    318 RTDECL(size_t) RTSgBufCopyFromBuf(PRTSGBUF pSgBuf, void *pvBuf, size_t cbCopy)
     318RTDECL(size_t) RTSgBufCopyFromBuf(PRTSGBUF pSgBuf, const void *pvBuf, size_t cbCopy)
    319319{
    320320    AssertPtrReturn(pSgBuf, 0);
     
    334334
    335335        cbLeft -= cbThisCopy;
    336         pvBuf = (void *)((uintptr_t)pvBuf + cbThisCopy);
     336        pvBuf = (const void *)((uintptr_t)pvBuf + cbThisCopy);
    337337    }
    338338
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