VirtualBox

Ignore:
Timestamp:
Aug 19, 2023 2:57:05 AM (17 months ago)
Author:
vboxsync
Message:

IPRT,Storage,Puel: Changed the pfnRead and pfnWrite VFS methods and the RTVfsIoStrmSgRead, RTVfsIoStrmSgWrite, RTVfsFileSgRead and RTVfsFileSgWrite APIs to advance pSgBuf and respect the incoming position just like RTFileSgRead & RTFileSgWrite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/pkzip.cpp

    r98103 r100908  
    9999 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead}
    100100 */
    101 static DECLCALLBACK(int) memFssIos_Read(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)
     101static DECLCALLBACK(int) memFssIos_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)
    102102{
    103103    PMEMIOSTREAM pThis = (PMEMIOSTREAM)pvThis;
     
    123123    if (pcbRead)
    124124        *pcbRead = cbToRead;
     125    RTSgBufAdvance(pSgBuf, cbToRead);
    125126
    126127    return VINF_SUCCESS;
     
    130131 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnWrite}
    131132 */
    132 static DECLCALLBACK(int) memFssIos_Write(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)
     133static DECLCALLBACK(int) memFssIos_Write(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)
    133134{
    134135    RT_NOREF_PV(pvThis); RT_NOREF_PV(off); RT_NOREF_PV(pSgBuf); RT_NOREF_PV(fBlocking); RT_NOREF_PV(pcbWritten);
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