#include <FragmentedFile.h>
Public Member Functions | |
CFragmentedFile () | |
virtual | ~CFragmentedFile () |
BOOL | Create (LPCTSTR pszFile, QWORD nLength) |
BOOL | Open (LPCTSTR pszFile) |
BOOL | Flush () |
void | Close () |
void | Clear () |
BOOL | MakeComplete () |
void | Serialize (CArchive &ar, int nVersion) |
BOOL | IsPositionRemaining (QWORD nOffset) const |
BOOL | DoesRangeOverlap (QWORD nOffset, QWORD nLength) const |
QWORD | GetRangeOverlap (QWORD nOffset, QWORD nLength) const |
BOOL | WriteRange (QWORD nOffset, LPCVOID pData, QWORD nLength) |
BOOL | ReadRange (QWORD nOffset, LPVOID pData, QWORD nLength) |
QWORD | InvalidateRange (QWORD nOffset, QWORD nLength) |
BOOL | IsValid () const |
BOOL | IsOpen () const |
QWORD | GetTotal () const |
QWORD | GetRemaining () const |
QWORD | GetCompleted () const |
const FF::SimpleFragmentList & | GetEmptyFragmentList () const |
QWORD | GetEmptyFragmentCount () const |
BOOL | IsFlushNeeded () const |
Protected Attributes | |
CTransferFile * | m_pFile |
QWORD | m_nUnflushed |
Private Attributes | |
FF::SimpleFragmentList | m_oFList |
Friends | |
class | CEDPartImporter |
|
Definition at line 42 of file FragmentedFile.cpp. |
|
Definition at line 46 of file FragmentedFile.cpp. References Clear(). |
|
Definition at line 124 of file FragmentedFile.cpp. References Close(), m_oFList, and detail::List< FragmentT, ContainerT >::swap(). Referenced by ~CFragmentedFile(). |
|
Definition at line 111 of file FragmentedFile.cpp. References m_nUnflushed, m_pFile, NULL, and CTransferFile::Release(). Referenced by Clear(), CDownloadWithFile::CloseFile(), and CDownload::OnDownloaded(). |
|
|
Definition at line 182 of file FragmentedFile.cpp. References m_oFList, and detail::overlaps(). Referenced by ReadRange(). |
|
Definition at line 99 of file FragmentedFile.cpp. References CTransferFile::GetHandle(), CTransferFile::IsOpen(), m_nUnflushed, m_pFile, and NULL. Referenced by CDownload::OnRun(). |
|
Definition at line 86 of file FragmentedFile.h. References m_oFList, and detail::List< FragmentT, ContainerT >::missing(). Referenced by CDownloadWithFile::GetVolumeComplete(). |
|
Definition at line 96 of file FragmentedFile.h. References m_oFList, and detail::List< FragmentT, ContainerT >::size(). |
|
|
Definition at line 187 of file FragmentedFile.cpp. References m_oFList, and detail::overlappingSum(). |
|
Definition at line 81 of file FragmentedFile.h. References m_oFList, and detail::List< FragmentT, ContainerT >::sumLength(). Referenced by CDownloadWithTiger::ContinueValidation(), CDownloadWithFile::GetVolumeRemaining(), CDownloadWithFile::PrepareFile(), and CDownloadWithFile::RunFile(). |
|
Definition at line 76 of file FragmentedFile.h. References detail::List< FragmentT, ContainerT >::limit(), and m_oFList. |
|
Definition at line 244 of file FragmentedFile.cpp. References detail::List< FragmentT, ContainerT >::insert(), and m_oFList. Referenced by CDownloadWithFile::EraseRange(), and CDownloadWithTiger::FinishValidation(). |
|
Definition at line 101 of file FragmentedFile.h. References m_nUnflushed, m_pFile, and NULL. |
|
Definition at line 71 of file FragmentedFile.h. Referenced by CDownloadWithFile::OpenFile(), CDownloadWithFile::RunFile(), CDownloadWithTorrent::RunTorrent(), and CDownloadWithTorrent::SeedTorrent(). |
|
Definition at line 177 of file FragmentedFile.cpp. References detail::hasPosition(), and m_oFList. Referenced by CDownloadWithFile::ClipUploadRange(), and CDownloadWithFile::IsPositionEmpty(). |
|
|
Definition at line 135 of file FragmentedFile.cpp. References detail::List< FragmentT, ContainerT >::clear(), detail::List< FragmentT, ContainerT >::empty(), CTransferFile::GetHandle(), detail::List< FragmentT, ContainerT >::limit(), m_oFList, m_pFile, and NULL. Referenced by CDownloadWithFile::MakeComplete(). |
|
Definition at line 85 of file FragmentedFile.cpp. References detail::List< FragmentT, ContainerT >::limit(), m_oFList, m_pFile, NULL, CTransferFiles::Open(), and TransferFiles. Referenced by CDownloadWithFile::OpenFile(). |
|
Definition at line 228 of file FragmentedFile.cpp. References DoesRangeOverlap(), m_pFile, NULL, and CTransferFile::Read(). Referenced by CDownloadWithTiger::ContinueValidation(). |
|
Definition at line 160 of file FragmentedFile.cpp. References detail::List< FragmentT, ContainerT >::limit(), m_oFList, detail::SerializeIn1(), and detail::SerializeOut1(). Referenced by CDownloadWithFile::Serialize(), and CDownload::SerializeOld(). |
|
Definition at line 195 of file FragmentedFile.cpp. References FF::detail::Fragment< Payload, OffsetType >::begin(), FF::detail::Fragment< Payload, OffsetType >::end(), detail::List< FragmentT, ContainerT >::erase(), m_nUnflushed, m_oFList, m_pFile, NULL, detail::List< FragmentT, ContainerT >::overlappingRange(), and CTransferFile::Write(). Referenced by CDownloadWithFile::SubmitData(). |
|
Definition at line 106 of file FragmentedFile.h. |
|
Definition at line 42 of file FragmentedFile.h. Referenced by Close(), Flush(), IsFlushNeeded(), and WriteRange(). |
|
Definition at line 45 of file FragmentedFile.h. Referenced by Clear(), Create(), DoesRangeOverlap(), GetCompleted(), GetEmptyFragmentCount(), GetEmptyFragmentList(), GetRangeOverlap(), GetRemaining(), GetTotal(), CEDPartImporter::ImportFile(), InvalidateRange(), IsPositionRemaining(), IsValid(), MakeComplete(), Open(), Serialize(), and WriteRange(). |
|
Definition at line 41 of file FragmentedFile.h. Referenced by Close(), Create(), Flush(), IsFlushNeeded(), IsOpen(), MakeComplete(), Open(), ReadRange(), and WriteRange(). |