VirtualBox

Changeset 21801 in vbox


Ignore:
Timestamp:
Jul 26, 2009 5:45:31 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: Clearified RTFileReadAll*.

Location:
trunk
Files:
2 edited

Legend:

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

    r21616 r21801  
    722722 * @param   pszFilename     The name of the file.
    723723 * @param   ppvFile         Where to store the pointer to the memory on successful return.
    724  * @param   pcbFile         Where to store the size of the file on successful return.
     724 * @param   pcbFile         Where to store the size of the returned memory.
    725725 *
    726726 * @remarks Note that this function may be implemented using memory mapping, which means
     
    745745 * @param   fFlags          See RTFILE_RDALL_*.
    746746 * @param   ppvFile         Where to store the pointer to the memory on successful return.
    747  * @param   pcbFile         Where to store the size of the file on successful return.
     747 * @param   pcbFile         Where to store the size of the returned memory.
    748748 *
    749749 * @remarks See the remarks for RTFileReadAll.
     
    759759 * @param   File            The handle to the file.
    760760 * @param   ppvFile         Where to store the pointer to the memory on successful return.
    761  * @param   pcbFile         Where to store the size of the file on successful return.
     761 * @param   pcbFile         Where to store the size of the returned memory.
    762762 *
    763763 * @remarks See the remarks for RTFileReadAll.
     
    777777 * @param   fFlags          See RTFILE_RDALL_*.
    778778 * @param   ppvFile         Where to store the pointer to the memory on successful return.
    779  * @param   pcbFile         Where to store the size of the file on successful return.
     779 * @param   pcbFile         Where to store the size of the returned memory.
    780780 *
    781781 * @remarks See the remarks for RTFileReadAll.
  • trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp

    r21337 r21801  
    8989                             */
    9090                            *ppvFile = pvFile;
    91                             *pcbFile = cbAllocFile;
     91                            *pcbFile = cbAllocMem;
    9292                        }
    9393                    }
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