VirtualBox

Changeset 33903 in vbox for trunk/include


Ignore:
Timestamp:
Nov 9, 2010 2:44:55 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67559
Message:

iprt: More VFS and gunzip code.

Location:
trunk/include/iprt
Files:
3 edited

Legend:

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

    r33887 r33903  
    12941294/** The compression method is unsupported. */
    12951295#define VERR_ZIP_UNSUPPORTED_METHOD             (-954)
     1296/** The compressed data started with a bad header. */
     1297#define VERR_ZIP_BAD_HEADER                     (-955)
    12961298/** @} */
    12971299
  • trunk/include/iprt/vfs.h

    r33859 r33903  
    211211 * @param   pvBuf           Where to store the read bytes.
    212212 * @param   cbToRead        The number of bytes to read.
    213  * @param   pcbRead         Where to store the number of bytes actually read.
    214  *                          If this is NULL, the call will block until @a
    215  *                          cbToRead bytes are available.  If this is non-NULL,
    216  *                          the call will not block and return what is currently
    217  *                          avaiable.
     213 * @param   pcbRead         Where to always store the number of bytes actually
     214 *                          read.  If this is NULL, the call will block until
     215 *                          @a cbToRead bytes are available.  If this is
     216 *                          non-NULL, the call will not block and return what
     217 *                          is currently avaiable.
    218218 * @sa      RTFileRead, RTPipeRead, RTPipeReadBlocking, RTSocketRead
    219219 */
     
    227227 * @param   pvBuf           The bytes to write.
    228228 * @param   cbToWrite       The number of bytes to write.
    229  * @param   pcbWritten      Where to store the number of bytes actually written.
    230  *                          If this is NULL, the call will block until @a
    231  *                          cbToWrite bytes are available.  If this is non-NULL,
    232  *                          the call will not block and return after writing
    233  *                          what is possible.
     229 * @param   pcbWritten      Where to always store the number of bytes actually
     230 *                          written.  If this is NULL, the call will block
     231 *                          until
     232 *                          @a cbToWrite bytes are available.  If this is
     233 *                          non-NULL, the call will not block and return after
     234 *                          writing what is possible.
    234235 * @sa      RTFileWrite, RTPipeWrite, RTPipeWriteBlocking, RTSocketWrite
    235236 */
     
    240241 *
    241242 * @returns IPRT status code.
     243 * @retval  VINF_SUCCESS and the number of bytes read written to @a pcbRead.
     244 * @retval  VINF_TRY_AGAIN if @a fBlocking is @c false, @a pcbRead is not NULL,
     245 *          and no data was available. @a *pcbRead will be set to 0.
     246 * @retval  VINF_EOF when trying to read __beyond__ the end of the stream and
     247 *          @a pcbRead is not NULL (it will be set to the number of bytes read,
     248 *          or 0 if the end of the stream was reached before this call).
     249 *          When the last byte of the read request is the last byte in the
     250 *          stream, this status code will not be used.  However, VINF_EOF is
     251 *          returned when attempting to read 0 bytes while standing at the end
     252 *          of the stream.
     253 * @retval  VERR_EOF when trying to read __beyond__ the end of the stream and
     254 *          @a pcbRead is NULL.
     255 *
    242256 * @param   hVfsIos         The VFS I/O stream handle.
    243257 * @param   pSgBuf          Pointer to a scatter buffer descriptor.  The number
     
    246260 * @param   fBlocking       Whether the call is blocking (@c true) or not.  If
    247261 *                          not, the @a pcbRead parameter must not be NULL.
    248  * @param   pcbRead         Where to store the number of bytes actually read.
    249  *                          This can be NULL if @a fBlocking is true.
    250  * @sa      RTFileSgRead, RTSocketSgRead
     262 * @param   pcbRead         Where to always store the number of bytes actually
     263 *                          read.  This can be NULL if @a fBlocking is true.
     264 * @sa      RTFileSgRead, RTSocketSgRead, RTPipeRead, RTPipeReadBlocking
    251265 */
    252266RTDECL(int)         RTVfsIoStrmSgRead(RTVFSIOSTREAM hVfsIos, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead);
     
    262276 * @param   fBlocking       Whether the call is blocking (@c true) or not.  If
    263277 *                          not, the @a pcbWritten parameter must not be NULL.
    264  * @param   pcbRead         Where to store the number of bytes actually written.
    265  *                          This can be NULL if @a fBlocking is true.
     278 * @param   pcbRead         Where to always store the number of bytes actually
     279 *                          written.  This can be NULL if @a fBlocking is true.
    266280 * @sa      RTFileSgWrite, RTSocketSgWrite
    267281 */
  • trunk/include/iprt/vfslowlevel.h

    r33887 r33903  
    429429     * Reads from the file/stream.
    430430     *
    431      * @returns IPRT status code.
     431     * @returns IPRT status code. See RTVfsIoStrmRead.
    432432     * @param   pvThis      The implementation specific file data.
    433433     * @param   off         Where to read at, -1 for the current position.
     
    436436     * @param   fBlocking   If @c true, the call is blocking, if @c false it
    437437     *                      should not block.
    438      * @param   pcbRead     Where return the number of bytes actually read.  If
    439      *                      NULL, try read all and fail if incomplete.
    440      * @sa      RTFileRead, RTFileReadAt.
     438     * @param   pcbRead     Where return the number of bytes actually read.
     439     *                      This is set it 0 by the caller.  If NULL, try read
     440     *                      all and fail if incomplete.
     441     * @sa      RTVfsIoStrmRead, RTVfsIoStrmSgRead, RTVfsFileRead,
     442     *          RTVfsFileReadAt, RTFileRead, RTFileReadAt.
    441443     */
    442444    DECLCALLBACKMEMBER(int, pfnRead)(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead);
     
    453455     * @param   fBlocking   If @c true, the call is blocking, if @c false it
    454456     *                      should not block.
    455      * @param   pcbWrit  Where to return the number of bytes actually
    456      *                      written.  If  NULL, try write it all and fail if
    457      *                      incomplete.
     457     * @param   pcbWritten  Where to return the number of bytes actually
     458     *                      written.  This is set it 0 by the caller.  If
     459     *                      NULL, try write it all and fail if incomplete.
    458460     * @sa      RTFileWrite, RTFileWriteAt.
    459461     */
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