Home
last modified time | relevance | path

Searched refs:_file (Results 1 – 25 of 48) sorted by relevance

12

/third_party/python/Lib/
Daifc.py306 _file = None # Set here since __del__ checks it variable in Aifc_read
313 self._file = file
329 chunk = Chunk(self._file)
370 return self._file
377 file = self._file
379 self._file = None
557 _file = None # Set here since __del__ checks it variable in Aifc_write
576 self._file = file
731 self._file.write(data)
742 if self._file is None:
[all …]
Dsunau.py169 if self._file:
179 self._file = file
225 return self._file
273 data = self._file.read()
275 data = self._file.read(nframes * self._framesize)
286 self._file.seek(self._data_pos)
297 self._file.seek(self._data_pos + pos * self._framesize)
301 file = self._file
303 self._file = None
319 if self._file:
[all …]
Dmailbox.py595 self._file = f
643 _lock_file(self._file)
649 _unlock_file(self._file)
658 _sync_flush(self._file)
669 self._file.seek(0, 2)
670 cur_len = self._file.tell()
682 self._file.seek(start)
686 buffer = self._file.read(min(4096,
687 stop - self._file.tell()))
700 self._file.close()
[all …]
Dwave.py128 self._file = Chunk(file, bigendian = 0)
129 if self._file.getname() != b'RIFF':
131 if self._file.read(4) != b'WAVE':
138 chunk = Chunk(self._file, bigendian = 0)
182 return self._file
189 self._file = None
314 self._file = file
432 self._file.write(data)
443 if self._file:
447 self._file.flush()
[all …]
Dfileinput.py87 if _state and _state._file:
205 self._file = None
260 if not self._file:
292 file = self._file
293 self._file = None
316 if not self._file:
331 self._file = None
344 self._file = getattr(sys.stdin, 'buffer', sys.stdin)
346 self._file = sys.stdin
358 self._file = open(self._backupfilename, self._mode, encoding=encoding)
[all …]
Dtempfile.py649 self._file = _io.BytesIO()
652 self._file = _io.TextIOWrapper(_io.BytesIO(),
672 file = self._file
673 newfile = self._file = TemporaryFile(**self._TemporaryFileArgs)
692 if self._file.closed:
697 self._file.close()
701 return self._file.__iter__()
704 self._file.close()
708 return self._file.closed
712 return self._file.encoding
[all …]
/third_party/mindspore/tests/st/auto_monad/
Dcapture.py25 self._file = sys.stdout = tempfile.TemporaryFile(mode='w+t')
27 os.dup2(self._file.fileno(), self._stdout_fd)
33 self._file.seek(0)
34 self.output = self._file.read()
35 self._file.close()
/third_party/curl/docs/libcurl/
DCMakeLists.txt27 foreach(_file IN LISTS ${_listname})
28 if(_file STREQUAL "libcurl-symbols.3")
30 set(_srcfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
32 set(_srcfile "${CMAKE_CURRENT_SOURCE_DIR}/${_file}")
35 string(REPLACE ".3" ".html" _htmlfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
42 string(REPLACE ".3" ".pdf" _pdffile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
43 string(REPLACE ".3" ".ps" _psfile "${CMAKE_CURRENT_BINARY_DIR}/${_file}")
/third_party/expat/cmake/autotools/
Dexpat-package-init.cmake8 macro(set_and_check _var _file)
9 set(${_var} "${_file}")
10 if(NOT EXISTS "${_file}")
11 … message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
/third_party/skia/third_party/externals/expat/expat/cmake/autotools/
Dexpat-package-init.cmake8 macro(set_and_check _var _file)
9 set(${_var} "${_file}")
10 if(NOT EXISTS "${_file}")
11 … message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
/third_party/boost/libs/callable_traits/test/
DCMakeLists.txt31 foreach(_file IN LISTS UNIT_TESTS)
32 boost_callable_traits_target_name_for(_target "${_file}")
33 add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
35 add_executable(${lazy_target} EXCLUDE_FROM_ALL "${_file}")
/third_party/boost/libs/callable_traits/example/
DCMakeLists.txt20 foreach(_file IN LISTS EXAMPLES)
21 boost_callable_traits_target_name_for(_target "${_file}")
22 add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
/third_party/flutter/flutter/dev/tools/
Dmega_gallery.dart79 _createEntry(_file(out, 'lib/main.dart'), copies);
82 String pubspec = _file(out, 'pubspec.yaml').readAsStringSync();
84 _file(out, 'pubspec.yaml').writeAsStringSync(pubspec);
87 _file(out, 'analysis_options.yaml').deleteSync();
89 _file(out, '.dartignore').writeAsStringSync('');
130 _file(dest, 'main.dart').writeAsBytesSync(_file(lib, 'main.dart').readAsBytesSync());
154 File _file(Directory parent, String name) => File(path.join(parent.path, name));
/third_party/boost/libs/hana/example/
DCMakeLists.txt53 foreach(_file IN LISTS EXAMPLES)
54 boost_hana_target_name_for(_target "${_file}")
55 add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
58 if (_file IN_LIST EXAMPLES_REQUIRING_BOOST)
/third_party/protobuf/cmake/
Dprotobuf-config.cmake.in62 foreach(_file ${_source_list})
63 if(_file MATCHES "proto$")
64 list(APPEND protobuf_generate_PROTOS ${_file})
76 foreach(_file ${protobuf_generate_PROTOS})
77 get_filename_component(_abs_file ${_file} ABSOLUTE)
Dprotobuf-module.cmake.in26 foreach(_file ${_outvar})
27 if(_file MATCHES "cc$")
28 list(APPEND ${SRCS} ${_file})
30 list(APPEND ${HDRS} ${_file})
Dinstall.cmake87 foreach(_file ${nobase_dist_proto_DATA})
88 get_filename_component(_file_from "../src/${_file}" ABSOLUTE)
89 get_filename_component(_file_name ${_file} NAME)
90 get_filename_component(_file_path ${_file} PATH)
/third_party/jerryscript/tools/
Dheaplimit_measure.py54 for _file in files:
55 if not os.path.isfile(_file):
56 sys.exit("File not found: %s" % _file)
/third_party/python/Lib/test/
Dtest_mailbox.py1056 self._box._file.flush()
1057 self._box._file.seek(0)
1058 contents = self._box._file.read()
2024 self._file = open(self._path, 'wb+')
2027 self._file.close()
2032 self._file.write(b'foo')
2033 pos = self._file.tell()
2034 proxy0 = mailbox._ProxyFile(self._file)
2036 self.assertEqual(self._file.tell(), pos)
2037 proxy1 = mailbox._ProxyFile(self._file, 0)
[all …]
/third_party/boost/boost/gil/io/
Ddevice.hpp82 _file = file_ptr_t( file in file_stream_device()
109 _file = file_ptr_t( file in file_stream_device()
118 : _file( file in file_stream_device()
123 FILE* get() { return _file.get(); } in get()
124 const FILE* get() const { return _file.get(); } in get()
320 file_ptr_t _file; member in boost::gil::detail::file_stream_device
/third_party/boost/libs/hana/test/
DCMakeLists.txt100 foreach(_file IN LISTS UNIT_TESTS)
101 boost_hana_target_name_for(_target "${_file}")
102 add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
104 if (_file IN_LIST TESTS_REQUIRING_BOOST)
/third_party/mesa3d/src/intel/compiler/
Dbrw_disasm.c1248 enum brw_reg_file _file; in src0_3src() local
1261 _file = brw_inst_3src_a1_src0_reg_file(devinfo, inst); in src0_3src()
1264 _file = BRW_GENERAL_REGISTER_FILE; in src0_3src()
1267 _file = BRW_ARCHITECTURE_REGISTER_FILE; in src0_3src()
1269 _file = BRW_IMMEDIATE_VALUE; in src0_3src()
1292 _file = BRW_GENERAL_REGISTER_FILE; in src0_3src()
1317 err |= reg(file, _file, reg_nr); in src0_3src()
1335 enum brw_reg_file _file; in src1_3src() local
1348 _file = brw_inst_3src_a1_src1_reg_file(devinfo, inst); in src1_3src()
1351 _file = BRW_GENERAL_REGISTER_FILE; in src1_3src()
[all …]
/third_party/mesa3d/bin/
Dperf-annotate-jit.py59 self._file = file
65 line = self._file.readline()
/third_party/flutter/engine/flutter/tools/licenses/lib/
Dfilesystem.dart491 FileSystemFile(this._file);
493 final io.File _file;
496 String get name => path.basename(_file.path);
499 String get fullName => _file.path;
503 return cache(BytesOf(_file), () => _file.readAsBytesSync());
587 ArchiveFile(this.fullName, this._file);
589 final a.ArchiveFile _file;
592 String get name => path.basename(_file.name);
599 return _file.content;
/third_party/boost/libs/test/test/
DCMakeLists.txt155 foreach(_file IN LISTS _var_to_list)
156 set(_list_files ${_list_files} ${BOOST_TEST_EXAMPLES_FOLDER}/${_file})

12