VirtualBox

Changeset 98458 in vbox for trunk


Ignore:
Timestamp:
Feb 3, 2023 10:56:48 AM (2 years ago)
Author:
vboxsync
Message:

Runtime/commone/zip/tarvfswriter.cpp: Add support to write CPIO archives (only the ascii style without checksum is supported right now), shares a lot with the tar code so it didn't made sense to put it into a new vfs module [build fix]

Location:
trunk
Files:
2 edited

Legend:

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

    r98457 r98458  
    253253
    254254/**
     255 * Opens a xz decompression I/O stream.
     256 *
     257 * @returns IPRT status code.
     258 *
     259 * @param   hVfsIosIn           The compressed input stream (must be readable).
     260 *                              The reference is not consumed, instead another
     261 *                              one is retained.
     262 * @param   fFlags              Flags, MBZ.
     263 * @param   phVfsIosGunzip      Where to return the handle to the gunzipped I/O
     264 *                              stream (read).
     265 */
     266RTDECL(int) RTZipXzDecompressIoStream(RTVFSIOSTREAM hVfsIosIn, uint32_t fFlags, PRTVFSIOSTREAM phVfsIosGunzip);
     267
     268
     269/**
    255270 * Opens a gzip decompression I/O stream.
    256271 *
     
    266281 */
    267282RTDECL(int) RTZipGzipCompressIoStream(RTVFSIOSTREAM hVfsIosDst, uint32_t fFlags, uint8_t uLevel, PRTVFSIOSTREAM phVfsIosGzip);
     283
     284
     285/**
     286 * Opens a xz decompression I/O stream.
     287 *
     288 * @returns IPRT status code.
     289 *
     290 * @param   hVfsIosDst          The compressed output stream (must be writable).
     291 *                              The reference is not consumed, instead another
     292 *                              one is retained.
     293 * @param   fFlags              Flags, MBZ.
     294 * @param   uLevel              The xz compression level, 1 thru 9.
     295 * @param   phVfsIosGzip        Where to return the xz input I/O stream handle
     296 *                              (you write to this).
     297 */
     298RTDECL(int) RTZipXzCompressIoStream(RTVFSIOSTREAM hVfsIosDst, uint32_t fFlags, uint8_t uLevel, PRTVFSIOSTREAM phVfsIosXz);
     299
    268300
    269301/**
  • trunk/src/VBox/Runtime/common/zip/tarvfswriter.cpp

    r98457 r98458  
    645645     * File path size including the terminator.
    646646     */
    647     rtZipTarFssWriter_CpioFmtU32(pThis->Cpio.Hdr.AsciiNew.achNameSize, cchPath);
     647    rtZipTarFssWriter_CpioFmtU32(pThis->Cpio.Hdr.AsciiNew.achNameSize, (uint32_t)cchPath);
    648648
    649649    pThis->cHdrs = 1;
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