MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / SetEndOfFileInternal

Method SetEndOfFileInternal

libcppcryptfs/file/cryptfile.cpp:779–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779BOOL CryptFileForward::SetEndOfFileInternal(LARGE_INTEGER& off)
780{
781#if 0
782 // now handled by per-file (not per-handle) shared mutex
783 // below is the old comment
784
785 // the calls to set the file pointer and then the end of file
786 // need to be made atomic (serialized)
787 lock_guard<mutex> lock(m_con->m_file_pointer_mutex);
788#endif
789
790 if (!SetFilePointerEx(m_handle, off, NULL, FILE_BEGIN))
791 return FALSE;
792
793 return ::SetEndOfFile(m_handle);
794}
795
796CryptFileReverse::CryptFileReverse()
797{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected