VirtualBox

Changeset 47359 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 24, 2013 12:45:47 AM (11 years ago)
Author:
vboxsync
Message:

IPRT: Added compression to the gzip VFS I/O stream class (RTZipGzipCompressIoStream) and implemented compression in the RTGzip example tool (testcase\RTGzip.exe).

Location:
trunk/include/iprt
Files:
3 edited

Legend:

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

    r47356 r47359  
    18611861# define RTZipDecompDestroy                             RT_MANGLER(RTZipDecompDestroy)
    18621862# define RTZipDecompress                                RT_MANGLER(RTZipDecompress)
     1863# define RTZipGzipCompressIoStream                      RT_MANGLER(RTZipGzipCompressIoStream)
    18631864# define RTZipGzipDecompressIoStream                    RT_MANGLER(RTZipGzipDecompressIoStream)
    18641865# define RTZipTarCmd                                    RT_MANGLER(RTZipTarCmd)
  • trunk/include/iprt/vfs.h

    r47356 r47359  
    606606 * @param   fBlocking       Whether the call is blocking (@c true) or not.  If
    607607 *                          not, the @a pcbWritten parameter must not be NULL.
    608  * @param   pcbRead         Where to always store the number of bytes actually
     608 * @param   pcbWritten      Where to always store the number of bytes actually
    609609 *                          written.  This can be NULL if @a fBlocking is true.
    610610 * @sa      RTFileSgWrite, RTSocketSgWrite
  • trunk/include/iprt/zip.h

    r47343 r47359  
    221221 * @returns IPRT status code.
    222222 *
    223  * @param   hVfsIosIn           The compressed input stream.  The reference is
    224  *                              not consumed, instead another one is retained.
     223 * @param   hVfsIosIn           The compressed input stream (must be readable).
     224 *                              The reference is not consumed, instead another
     225 *                              one is retained.
    225226 * @param   fFlags              Flags, MBZ.
    226  * @param   phVfsIosOut         Where to return the handle to the gzip I/O
    227  *                              stream.
    228  */
    229 RTDECL(int) RTZipGzipDecompressIoStream(RTVFSIOSTREAM hVfsIosIn, uint32_t fFlags, PRTVFSIOSTREAM phVfsIosOut);
     227 * @param   phVfsIosGunzip      Where to return the handle to the gunzipped I/O
     228 *                              stream (read).
     229 */
     230RTDECL(int) RTZipGzipDecompressIoStream(RTVFSIOSTREAM hVfsIosIn, uint32_t fFlags, PRTVFSIOSTREAM phVfsIosGunzip);
     231
     232/**
     233 * Opens a gzip decompression I/O stream.
     234 *
     235 * @returns IPRT status code.
     236 *
     237 * @param   hVfsIosDst          The compressed output stream (must be writable).
     238 *                              The reference is not consumed, instead another
     239 *                              one is retained.
     240 * @param   fFlags              Flags, MBZ.
     241 * @param   uLevel              The gzip compression level, 1 thru 9.
     242 * @param   phVfsIosGzip        Where to return the gzip input I/O stream handle
     243 *                              (you write to this).
     244 */
     245RTDECL(int) RTZipGzipCompressIoStream(RTVFSIOSTREAM hVfsIosDst, uint32_t fFlags, uint8_t uLevel, PRTVFSIOSTREAM phVfsIosGzip);
    230246
    231247/**
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