VirtualBox

Changeset 100928 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 21, 2023 11:04:25 PM (17 months ago)
Author:
vboxsync
Message:

IPRT/vfs: Added RTVfsFileReadAll and RTVfsFileReadAllFree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsiosmisc.cpp

    r98103 r100928  
    237237}
    238238
     239
     240RTDECL(int) RTVfsFileReadAll(RTVFSFILE hVfsFile, void **ppvBuf, size_t *pcbBuf)
     241{
     242    RTVFSIOSTREAM hVfsIos = RTVfsFileToIoStream(hVfsFile);
     243    int rc = RTVfsIoStrmReadAll(hVfsIos, ppvBuf, pcbBuf);
     244    RTVfsIoStrmRelease(hVfsIos);
     245    return rc;
     246}
     247
     248
     249RTDECL(void) RTVfsFileReadAllFree(void *pvBuf, size_t cbBuf)
     250{
     251    RTVfsIoStrmReadAllFree(pvBuf, cbBuf);
     252}
     253
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