VirtualBox

Changeset 59524 in vbox for trunk/include


Ignore:
Timestamp:
Jan 30, 2016 1:28:29 AM (9 years ago)
Author:
vboxsync
Message:

IPRT: Added RTVfsMemFileCreate and RTVfsFileFromBuffer.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r59480 r59524  
    22072207# define RTVfsDirRetain                                 RT_MANGLER(RTVfsDirRetain)
    22082208# define RTVfsFileFlush                                 RT_MANGLER(RTVfsFileFlush)
     2209# define RTVfsFileFromBuffer                            RT_MANGLER(RTVfsFileFromBuffer)
    22092210# define RTVfsFileFromRTFile                            RT_MANGLER(RTVfsFileFromRTFile)
    22102211# define RTVfsFileGetSize                               RT_MANGLER(RTVfsFileGetSize)
     
    22552256# define RTVfsLockReleaseWriteSlow                      RT_MANGLER(RTVfsLockReleaseWriteSlow)
    22562257# define RTVfsLockRetain                                RT_MANGLER(RTVfsLockRetain)
     2258# define RTVfsMemFileCreate                             RT_MANGLER(RTVfsMemFileCreate)
    22572259# define RTVfsMemorizeIoStreamAsFile                    RT_MANGLER(RTVfsMemorizeIoStreamAsFile)
    22582260# define RTVfsNew                                       RT_MANGLER(RTVfsNew)
  • trunk/include/iprt/vfs.h

    r57944 r59524  
    903903
    904904/**
     905 * Creates a VFS file from a memory buffer.
     906 *
     907 * @returns VBox status code.
     908 *
     909 * @param   hVfsIos         The VFS I/O stream to memorize.  This will be read
     910 *                          to the end on success, on failure its position is
     911 *                          undefined.
     912 * @param   fFlags          A combination of RTFILE_O_READ and RTFILE_O_WRITE.
     913 * @param   pvBuf           The buffer.  This will be copied and not referenced
     914 *                          after this function returns.
     915 * @param   cbBuf           The buffer size.
     916 * @param   phVfsFile       Where to return the handle to the memory file on
     917 *                          success.
     918 */
     919RTDECL(int) RTVfsFileFromBuffer(RTVFSIOSTREAM hVfsIos, uint32_t fFlags, void const *pvBuf, size_t cbBuf, PRTVFSFILE phVfsFile);
     920
     921/**
     922 * Creates a memory backed VFS file object for read and write.
     923 *
     924 * @returns VBox status code.
     925 *
     926 * @param   hVfsIos         The VFS I/O stream to memorize.  This will be read
     927 *                          to the end on success, on failure its position is
     928 *                          undefined.
     929 * @param   cbEstimate      The estimated file size.
     930 * @param   phVfsFile       Where to return the handle to the memory file on
     931 *                          success.
     932 */
     933RTDECL(int) RTVfsMemFileCreate(RTVFSIOSTREAM hVfsIos, size_t cbEstimate, PRTVFSFILE phVfsFile);
     934
     935/**
    905936 * Pumps data from one I/O stream to another.
    906937 *
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