Searched refs:m_file (Results 1 - 25 of 37) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/
H A Dwfstream.cpp38 m_file = new wxFile(fileName, wxFile::read);
40 if ( !m_file->IsOpened() )
48 m_file = NULL;
53 m_file = &file;
59 m_file = new wxFile(fd);
66 delete m_file;
71 return m_file->Length();
76 ssize_t ret = m_file->Read(buffer, size);
102 return m_file->Seek(pos, mode);
107 return m_file
226 wxFileOutputStream::m_file = member in class:wxFileOutputStream
409 wxFFileOutputStream::m_file = member in class:wxFFileOutputStream
[all...]
H A Dtextfile.cpp79 return m_file.Open(strBufferName.c_str(), FileOpenMode);
85 return m_file.Close();
92 wxASSERT_MSG( m_file.IsOpened(), _T("can't read closed file") );
111 fileLength = m_file.Length();
125 wxASSERT_MSG( m_file.Tell() == 0, _T("should be at start of file") );
130 ssize_t nRead = m_file.Read(block, WXSIZEOF(block));
H A Dfileback.cpp67 wxBFFile m_file; member in class:wxBackingFileImpl
129 if (m_file.Seek(pos) == wxBadSeek)
132 ssize_t n = m_file.Read(buffer, size1);
160 if (!m_file.IsOpened())
161 if (!wxCreateTempFile(m_prefix, &m_file, &m_filename))
164 if (m_file.Seek(m_filelen) == wxBadSeek)
167 size_t count = m_file.Write(m_buf, m_buflen);
H A Ddircmn.cpp252 m_file = filename;
263 return m_file;
267 wxString m_file; member in class:wxDirTraverserFindFirst
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/
H A DFileAutoClose.cpp53 return m_file.Open(path, mode);
61 return m_file.Create(path, overwrite);
66 bool state = m_autoClosed ? true : m_file.Close();
73 return m_autoClosed ? m_size : m_file.GetLength();
79 return m_file.SetLength(newLength);
84 return m_file.GetFilePath();
89 return m_autoClosed || m_file.IsOpened();
95 m_file.Seek(offset);
96 m_file.Read(buffer, count);
102 m_file
[all...]
H A DFileDetailDialog.cpp70 m_file = m_files[m_index];
95 CastChild(IDC_FNAME, wxStaticText)->SetLabel(MakeStringEscaped(m_file->GetFileName().TruncatePath(60)));
96 CastChild(IDC_METFILE, wxStaticText)->SetLabel(MakeStringEscaped(m_file->GetFullName().TruncatePath(60, true)));
102 CastChild(IDC_FHASH,wxStaticText)->SetLabel(m_file->GetFileHash().Encode());
103 bufferS = CFormat(wxT("%u bytes (%s)")) % m_file->GetFileSize() % CastItoXBytes(m_file->GetFileSize());
105 CastChild(IDC_PFSTATUS,wxControl)->SetLabel(m_file->getPartfileStatus());
106 bufferS = CFormat(wxT("%i (%i)")) % m_file->GetPartCount() % m_file->GetHashCount();
108 CastChild(IDC_TRANSFERRED,wxControl)->SetLabel(CastItoXBytes(m_file
[all...]
H A DCommentDialog.cpp38 m_file = file;
61 CoreNotify_KnownFile_Comment_Set(m_file, comment, (int8)ratebox->GetSelection());
77 CastChild(IDC_CMT_TEXT, wxTextCtrl)->SetValue(m_file->GetFileComment());
79 ratebox->SetSelection(m_file->GetFileRating());
H A DEditServerListDlg.h46 wxString m_file; member in class:EditServerListDlg
H A DCommentDialog.h50 CKnownFile* m_file; member in class:CCommentDialog
H A DEditServerListDlg.cpp46 m_file = filename;
81 if (m_textctrl->SaveFile(m_file))
84 wxLogSysError(wxT("Can't write to file '") + m_file + wxT("'"));
H A DCommentDialogLst.h65 CPartFile* m_file; member in class:CCommentDialogLst
H A DCommentDialogLst.cpp49 m_file(file)
89 m_file->GetRatingAndComments(list);
111 m_file->UpdateFileRatingCommentAvail();
H A DThreadTasks.h190 CPartFile * m_file; member in class:CAllocateFileTask
272 m_file(file), m_pause(pause), m_result(result)
279 CPartFile *GetFile() const throw() { return m_file; }
292 CPartFile * m_file; member in class:CAllocFinishedEvent
H A DFileArea.h116 CFileAutoClose * m_file; member in class:CFileArea
H A DFileAutoClose.h171 CFile m_file; member in class:CFileAutoClose
H A DFileDetailDialog.h48 CPartFile* m_file; member in class:CFileDetailDialog
H A DFileArea.cpp182 : m_buffer(NULL), m_mmap_buffer(NULL), m_length(0), m_next(NULL), m_file(NULL), m_error(false)
209 if (m_file) {
210 m_file->Unlock();
211 m_file = NULL;
230 m_file = &file;
257 m_file = &file;
H A DExternalConn.h122 CPartFile *m_file; member in struct:ECPartFileMsgSource::__anon43
143 CKnownFile *m_file; member in struct:ECKnownFileMsgSource::__anon44
179 CSearchFile *m_file; member in struct:ECSearchMsgSource::__anon45
H A DThreadTasks.cpp524 m_file(file), m_pause(pause), m_result(ENOSYS)
531 if (m_file->GetFileSize() == 0) {
541 if ((uint64_t)freeSpace < m_file->GetFileSize() + minFree) {
548 file.Open(m_file->GetFullName().RemoveExt(), CFile::read_write);
555 file.Seek(m_file->GetFileSize() - 1, wxFromStart);
565 m_result = fallocate(file.fd(), 0, 0, m_file->GetFileSize());
567 m_result = syscall(SYS_fallocate, file.fd(), 0, (loff_t)0, (loff_t)m_file->GetFileSize());
573 m_result = posix_fallocate(file.fd(), 0, m_file->GetFileSize());
582 uint64_t size = m_file->GetFileSize();
609 CAllocFinishedEvent evt(m_file, m_paus
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/
H A Dwfstream.h43 bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
53 wxFile *m_file; member in class:wxFileInputStream
68 bool Close() { return m_file_destroy ? m_file->Close() : true; }
73 bool IsSeekable() const { return m_file->GetKind() == wxFILE_KIND_DISK; }
83 wxFile *m_file; member in class:wxFileOutputStream
96 virtual bool Commit() { return m_file->Commit(); }
97 virtual void Discard() { m_file->Discard(); }
99 wxFileOffset GetLength() const { return m_file->Length(); }
105 { return m_file->Seek(pos, mode); }
106 wxFileOffset OnSysTell() const { return m_file
109 wxTempFile *m_file; member in class:wxTempFileOutputStream
154 wxFFile *m_file; member in class:wxFFileInputStream
184 wxFFile *m_file; member in class:wxFFileOutputStream
[all...]
H A Dfile.h166 bool IsOpened() const { return m_file.IsOpened(); }
168 wxFileOffset Length() const { return m_file.Length(); }
171 { return m_file.Seek(ofs, mode); }
173 wxFileOffset Tell() const { return m_file.Tell(); }
176 bool Write(const void *p, size_t n) { return m_file.Write(p, n) == n; }
178 { return m_file.Write(str, conv); }
196 wxFile m_file; // the temporary file member in class:wxTempFile
H A Dtextfile.h47 wxFile m_file; member in class:wxTextFile
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/libs/common/
H A DTextFile.cpp55 m_file.Open(path.GetRaw(), wxT("r"));
58 m_file.Open(path.GetRaw(), wxT("w"));
74 return m_file.IsOpened();
83 return m_file.IsOpened() ? m_file.Eof() : true;
89 return m_file.Close();
95 wxCHECK_MSG(m_file.IsOpened(), wxEmptyString, wxT("Trying to read from closed file."));
96 wxCHECK_MSG(!m_file.Eof(), wxEmptyString, wxT("Trying to read past EOF"));
105 while (fgets(buffer, TXTBUF_SIZE, m_file.fp())) {
176 wxCHECK_MSG(m_file
[all...]
H A DTextFile.h122 wxFFile m_file; member in class:CTextFile
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/
H A Dfiles.cpp24 m_file.reset(new std::ifstream);
29 m_file->open(fileName, ios::in | binary);
30 if (!*m_file)
32 m_stream = m_file.get();
157 m_file.reset(new std::ofstream);
162 m_file->open(fileName, ios::out | ios::trunc | binary);
163 if (!*m_file)
165 m_stream = m_file.get();

Completed in 201 milliseconds

12