Home
last modified time | relevance | path

Searched refs:m_file (Results 1 – 14 of 14) sorted by relevance

/external/libaom/libaom/third_party/libwebm/mkvparser/
Dmkvreader.cc16 MkvReader::MkvReader() : m_file(NULL), reader_owns_file_(true) {} in MkvReader()
18 MkvReader::MkvReader(FILE* fp) : m_file(fp), reader_owns_file_(false) { in MkvReader()
25 m_file = NULL; in ~MkvReader()
32 if (m_file) in Open()
36 const errno_t e = fopen_s(&m_file, fileName, "rb"); in Open()
41 m_file = fopen(fileName, "rb"); in Open()
43 if (m_file == NULL) in Open()
50 if (m_file == NULL) in GetFileSize()
53 int status = _fseeki64(m_file, 0L, SEEK_END); in GetFileSize()
58 m_length = _ftelli64(m_file); in GetFileSize()
[all …]
Dmkvreader.h39 FILE* m_file; variable
/external/libvpx/libvpx/third_party/libwebm/mkvparser/
Dmkvreader.cc16 MkvReader::MkvReader() : m_file(NULL), reader_owns_file_(true) {} in MkvReader()
18 MkvReader::MkvReader(FILE* fp) : m_file(fp), reader_owns_file_(false) { in MkvReader()
25 m_file = NULL; in ~MkvReader()
32 if (m_file) in Open()
36 const errno_t e = fopen_s(&m_file, fileName, "rb"); in Open()
41 m_file = fopen(fileName, "rb"); in Open()
43 if (m_file == NULL) in Open()
50 if (m_file == NULL) in GetFileSize()
53 int status = _fseeki64(m_file, 0L, SEEK_END); in GetFileSize()
58 m_length = _ftelli64(m_file); in GetFileSize()
[all …]
Dmkvreader.h39 FILE* m_file; variable
/external/deqp/framework/common/
DtcuResource.cpp51 m_file = fopen(filename, "rb"); in FileResource()
52 if (!m_file) in FileResource()
58 fclose(m_file); in ~FileResource()
63 int numRead = (int)fread(dst, 1, numBytes, m_file); in read()
69 long curPos = ftell(m_file); in getSize()
70 fseek(m_file, 0, SEEK_END); in getSize()
71 int size = (int)ftell(m_file); in getSize()
72 fseek(m_file, curPos, SEEK_SET); in getSize()
78 return (int)ftell(m_file); in getPosition()
83 fseek(m_file, (size_t)position, SEEK_SET); in setPosition()
DtcuResource.hpp123 FILE* m_file; member in tcu::FileResource
/external/deqp/execserver/
DxsPosixFileReader.cpp34 : m_file (DE_NULL) in FileReader()
48 m_file = deFile_create(filename, DE_FILEMODE_OPEN|DE_FILEMODE_READ); in start()
49 XS_CHECK(m_file); in start()
53 if (!deFile_setFlags(m_file, DE_FILE_NONBLOCKING)) in start()
55 deFile_destroy(m_file); in start()
56 m_file = DE_NULL; in start()
73 deFileResult result = deFile_read(m_file, &tmpBuf[0], (deInt64)tmpBuf.size(), &numRead); in run()
111 deFile_destroy(m_file); in stop()
112 m_file = DE_NULL; in stop()
DxsPosixTestProcess.cpp41 : m_file (DE_NULL) in CaseListWriter()
53 m_file = dst; in start()
61 if (!deFile_setFlags(m_file, DE_FILE_NONBLOCKING)) in start()
74 …deFileResult result = deFile_write(m_file, &m_caseList[0] + pos, m_caseList.size()-pos, &numWritt… in run()
95 m_file = DE_NULL; in stop()
99 : m_file (DE_NULL) in PipeReader()
116 m_file = file; in start()
128 deFileResult result = deFile_read(m_file, &tmpBuf[0], (deInt64)tmpBuf.size(), &numRead); in run()
166 m_file = DE_NULL; in stop()
DxsPosixTestProcess.hpp52 deFile* m_file; member in xs::posix::CaseListWriter
69 deFile* m_file; member in xs::posix::PipeReader
DxsPosixFileReader.hpp50 deFile* m_file; member in xs::posix::FileReader
/external/testng/src/main/java/org/testng/reporters/
DFileStringBuffer.java32 private File m_file; field in FileStringBuffer
60 copy(new StringReader(s.toString()), new FileWriter(m_file, true /* append */)); in append()
75 if (m_file == null) { in toWriter()
80 copy(new FileReader(m_file), bw); in toWriter()
109 if (m_file == null) { in flushToFile()
111 m_file = File.createTempFile("testng", "fileStringBuffer"); in flushToFile()
112 m_file.deleteOnExit(); in flushToFile()
113 p("Created temp file " + m_file); in flushToFile()
119 p("Size " + m_sb.length() + ", flushing to " + m_file); in flushToFile()
120 try (FileWriter fw = new FileWriter(m_file, true /* append */)) { in flushToFile()
[all …]
/external/catch2/include/internal/
Dcatch_output_redirect.cpp69 if (fopen_s(&m_file, m_buffer, "w")) { in TempFile()
79 m_file = std::tmpfile(); in TempFile()
80 if (!m_file) { in TempFile()
89 std::fclose(m_file); in ~TempFile()
99 return m_file; in getFile()
105 std::rewind(m_file); in getContents()
106 while (std::fgets(buffer, sizeof(buffer), m_file)) { in getContents()
Dcatch_output_redirect.h85 std::FILE* m_file = nullptr;
/external/catch2/single_include/catch2/
Dcatch.hpp9731 std::FILE* m_file = nullptr; member in Catch::TempFile
9819 if (fopen_s(&m_file, m_buffer, "w")) { in TempFile()
9829 m_file = std::tmpfile(); in TempFile()
9830 if (!m_file) { in TempFile()
9839 std::fclose(m_file); in ~TempFile()
9848 return m_file; in getFile()
9854 std::rewind(m_file); in getContents()
9855 while (std::fgets(buffer, sizeof(buffer), m_file)) { in getContents()