Code/Framework/AzFramework/AzFramework/Archive/NestedArchive.cpp
int NestedArchive::UpdateFileContinuousSegment(AZStd::string_view szRelativePath, uint64_t nSize, const void* pUncompressed, uint64_t nSegmentSize, uint64_t nOverwriteSeekPos)
    {
        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->UpdateFileContinuousSegment(fullPath, nSize, pUncompressed, nSegmentSize, nOverwriteSeekPos);
    }
//////////////////////////////////////////////////////////////////////////
// Adds a new file to the zip or update an existing segment if it is not compressed - just stored
// adds a directory (creates several nested directories if needed)
Adds a new file to the zip or update an existing segment if it is not compressed - just stored
adds a directory (creates several nested directories if needed)
Adds a new file to the zip or update an existing segment if it is not compressed - just stored adds a directory ( creates several nested directories if needed )
int NestedArchive::UpdateFileContinuousSegment(AZStd::string_view szRelativePath, uint64_t nSize, const void* pUncompressed, uint64_t nSegmentSize, uint64_t nOverwriteSeekPos)
    {
        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->UpdateFileContinuousSegment(fullPath, nSize, pUncompressed, nSegmentSize, nOverwriteSeekPos);
    }
int NestedArchive :: UpdateFileContinuousSegment ( AZStd :: string_view szRelativePath , uint64_t nSize , const void * pUncompressed , uint64_t nSegmentSize , uint64_t nOverwriteSeekPos ) { 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 -> UpdateFileContinuousSegment ( fullPath , nSize , pUncompressed , nSegmentSize , nOverwriteSeekPos ) ; }
Adds a new file to the zip or update an existing segment if it is not compressed - just stored
adds a directory (creates several nested directories if needed)
Adds a new file to the zip or update an existing segment if it is not compressed - just stored adds a directory ( creates several nested directories if needed )