Code/Framework/AzFramework/AzFramework/Archive/NestedArchive.cpp
int NestedArchive::UpdateFile(AZStd::string_view szRelativePath, const void* pUncompressed, uint64_t nSize, uint32_t nCompressionMethod, int nCompressionLevel, CompressionCodec::Codec codec)
    {
        if (m_nFlags & FLAGS_READ_ONLY)
        {
            return ZipDir::ZD_ERROR_INVALID_CALL;
        }

        AZ::IO::FixedMaxPathString fullPath = AdjustPath(szRelativePath);
        if (fullPath.empty())
        {
            return ZipDir::ZD_ERROR_INVALID_PATH;
        }
        return m_pCache->UpdateFile(fullPath, pUncompressed, nSize, nCompressionMethod, nCompressionLevel, codec);
    }
//////////////////////////////////////////////////////////////////////////
// Adds a new file to the zip or update an existing one
// adds a directory (creates several nested directories if needed)
// compression methods supported are 0 (store) and 8 (deflate) , compression level is 0..9 or -1 for default (like in zlib)
Adds a new file to the zip or update an existing one
adds a directory (creates several nested directories if needed)
compression methods supported are 0 (store) and 8 (deflate) , compression level is 0..9 or -1 for default (like in zlib)
Adds a new file to the zip or update an existing one adds a directory ( creates several nested directories if needed ) compression methods supported are 0 ( store ) and 8 ( deflate ) compression level is 0 .. 9 or - 1 for default ( like in zlib )
int NestedArchive::UpdateFile(AZStd::string_view szRelativePath, const void* pUncompressed, uint64_t nSize, uint32_t nCompressionMethod, int nCompressionLevel, CompressionCodec::Codec codec)
    {
        if (m_nFlags & FLAGS_READ_ONLY)
        {
            return ZipDir::ZD_ERROR_INVALID_CALL;
        }
        AZ::IO::FixedMaxPathString fullPath = AdjustPath(szRelativePath);
        if (fullPath.empty())
        {
            return ZipDir::ZD_ERROR_INVALID_PATH;
        }
        return m_pCache->UpdateFile(fullPath, pUncompressed, nSize, nCompressionMethod, nCompressionLevel, codec);
    }
int NestedArchive :: UpdateFile ( AZStd :: string_view szRelativePath , const void * pUncompressed , uint64_t nSize , uint32_t nCompressionMethod , int nCompressionLevel , CompressionCodec :: Codec codec ) { if ( m_nFlags & FLAGS_READ_ONLY ) { return ZipDir :: ZD_ERROR_INVALID_CALL ; } AZ :: IO :: FixedMaxPathString fullPath = AdjustPath ( szRelativePath ) ; if ( fullPath . empty ( ) ) { return ZipDir :: ZD_ERROR_INVALID_PATH ; } return m_pCache -> UpdateFile ( fullPath , pUncompressed , nSize , nCompressionMethod , nCompressionLevel , codec ) ; }
Adds a new file to the zip or update an existing one
adds a directory (creates several nested directories if needed)
compression methods supported are 0 (store) and 8 (deflate) , compression level is 0..9 or -1 for default (like in zlib)
Adds a new file to the zip or update an existing one adds a directory ( creates several nested directories if needed ) compression methods supported are 0 ( store ) and 8 ( deflate ) compression level is 0 .. 9 or - 1 for default ( like in zlib )