| /third_party/python/Lib/ |
| H A D | uu.py | 89 out_file.write(('begin %o %s\n' % ((mode & 0o777), name)).encode("ascii")) 92 out_file.write(binascii.b2a_uu(data, backtick=backtick)) 95 out_file.write(b'`\nend\n') 97 out_file.write(b' \nend\n') 143 raise Error(f'Refusing to write to {out_file} due to directory traversal') 168 sys.stderr.write("Warning: %s\n" % v) 169 out_file.write(data)
|
| /third_party/vk-gl-cts/scripts/log/ |
| H A D | log_to_xml.py | 154 out.write("<?xml version=\"1.0\"?>\n") 155 out.write("<?xml-stylesheet href=\"%s\" type=\"text/xsl\"?>\n" % STYLESHEET_FILENAME) 161 out.write(dstDoc.toprettyxml().splitlines()[1]) 162 out.write("\n") 179 out.write("\t" + line + "\n") 190 out.write(line + "\n")
|
| /device/soc/hisilicon/hi3861v100/sdk_liteos/tools/packet_tool/ |
| H A D | packet_tool.py | 96 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
101 file.write(
111 file.write(data)
112 file.write(struct.pack('IIII', 0, 0, 0, 0))
120 file.write(struct.pack('H', crc16))
215 file.write(struct.pack('IHHI', flag, crc, imageNum, totalFileSize))
220 file.write(
228 file.write(info)
229 file.write(struct.pack('IIII', 0, 0, 0, 0))
237 file.write(struc [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
| H A D | SampleProfWriter.cpp | 66 SampleProfileWriter::write(const StringMap<FunctionSamples> &ProfileMap) { in write() function in SampleProfileWriter 130 std::error_code SampleProfileWriterExtBinaryBase::write( in write() function in SampleProfileWriterExtBinaryBase 200 if (std::error_code EC = ProfSymList->write(*OutputStream)) in writeSections() 214 std::error_code SampleProfileWriterCompactBinary::write( in write() function in SampleProfileWriterCompactBinary 216 if (std::error_code EC = SampleProfileWriter::write(ProfileMap)) in write() 336 Writer.write(FuncOffsetTableStart); in writeFuncOffsetTable() 411 Writer.write(static_cast<uint64_t>(SectionHdrLayout.size())); in allocSecHdrTable() 414 Writer.write(static_cast<uint64_t>(-1)); in allocSecHdrTable() 415 Writer.write(static_cast<uint64_t>(-1)); in allocSecHdrTable() 416 Writer.write(static_cas in allocSecHdrTable() [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_io.py | 94 def write(self, b): member in MockRawIOWithoutRead 165 def write(self, b): member in MisbehavedRawIO 166 return super().write(b) * 2 290 def write(self, b): member in MockNonBlockWriterIO 300 # write data up to the first blocker 326 self.assertEqual(f.write(b"blah."), 5) 331 self.assertEqual(f.write(b"blah."), 5) 333 self.assertEqual(f.write(b"Hello."), 6) 338 self.assertEqual(f.write(buffer), 9) 341 self.assertEqual(f.write( 469 write = self.BufferedIOBase.write global() variable in IOTest.test_optional_abilities.text_reader.UnseekableReader 3414 def write(self, *args, **kwargs): global() member in TextIOWrapperTest.test_bufio_write_through.BufferedWriter 3789 def write(self, data): global() member in CTextIOWrapperTest.test_internal_buffer_size.MockIO [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
| H A D | ELFEmitter.cpp | 229 OS.write((const char *)A.data(), arrayDataSize(A)); in writeArrayData() 299 // Align the start of the section header and write the ELF header. in writeELFHeader() 309 OS.write((const char *)&Header, sizeof(Header)); in writeELFHeader() 424 // in the YAML, we need to write them here. This ensures the file offset in initSectionHeaders() 447 // We do not write any content for special SHN_UNDEF section. in initSectionHeaders() 660 STB.write(OS); in initStrtabSectionHeader() 821 OS.write((const char *)&REntry, sizeof(REntry)); in writeSectionContent() 827 OS.write((const char *)&REntry, sizeof(REntry)); in writeSectionContent() 853 support::endian::write<uintX_t>(OS, E, ELFT::TargetEndianness); in writeSectionContent() 867 support::endian::write<uint32_ in writeSectionContent() [all...] |
| /third_party/node/test/parallel/ |
| H A D | test-console-clear.js | 6 const stdoutWrite = process.stdout.write; 14 process.stdout.write = (string) => buf += string; 16 process.stdout.write = stdoutWrite;
|
| /third_party/node/deps/npm/node_modules/jsonparse/test/ |
| H A D | surrogate.js | 12 p.write('"\\uD83D\\uDE0B"'); 23 p.write('"\\uD83D'); 24 p.write('\\uDE0B"');
|
| /third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
| H A D | ByteOutput.java | 40 * <p><b>Traditional write operations:</b> (as defined by {@link java.io.OutputStream}) where the 41 * target method is responsible for either copying the data or completing the write before returning 44 * <p><b>Lazy write operations:</b> where the caller guarantees that it will never modify the 46 * maintain a reference to the buffer beyond the scope of the method call (e.g. until the write 57 public abstract void write(byte value) throws IOException; in write() method in ByteOutput 69 * @param length the number of bytes to write starting from {@code offset} 72 public abstract void write(byte[] value, int offset, int length) throws IOException; in write() method in ByteOutput 76 * beyond the scope of this method call (e.g. write later) since it is considered immutable and is 84 * @param length the number of bytes to write starting from {@code offset} 101 public abstract void write(ByteBuffe method in ByteOutput [all...] |
| H A D | CodedOutputStream.java | 51 * <p>This class contains two kinds of methods: methods that write specific protocol message 53 * write low-level values (e.g. {@link #writeRawVarint32} and {@link #writeRawBytes}). If you are 73 * Returns the buffer size to efficiently write dataLength bytes to this CodedOutputStream. Used 76 * @return the buffer size to efficiently write dataLength bytes to this CodedOutputStream. 228 /** Encode and write a tag. */ 317 * Write a {@code bytes} field, including tag, to the stream. This method will write all content 321 * you only want to write the remaining bytes of a ByteBuffer, you can call {@code 329 write(value); in writeRawByte() 334 write((byte) value); in writeRawByte() 339 write(valu in writeRawBytes() 484 public abstract void write(byte value) throws IOException; write() method in CodedOutputStream 488 public abstract void write(byte[] value, int offset, int length) throws IOException; write() method in CodedOutputStream 495 public abstract void write(ByteBuffer value) throws IOException; write() method in CodedOutputStream 1316 public final void write(byte value) throws IOException { write() method in CodedOutputStream.ArrayEncoder 1444 public final void write(byte[] value, int offset, int length) throws IOException { write() method in CodedOutputStream.ArrayEncoder 1460 public final void write(ByteBuffer value) throws IOException { write() method in CodedOutputStream.ArrayEncoder 1682 public void write(byte value) throws IOException { write() method in CodedOutputStream.SafeDirectNioEncoder 1776 public void write(byte[] value, int offset, int length) throws IOException { write() method in CodedOutputStream.SafeDirectNioEncoder 1792 public void write(ByteBuffer value) throws IOException { write() method in CodedOutputStream.SafeDirectNioEncoder 2012 public void write(byte value) throws IOException { write() method in CodedOutputStream.UnsafeDirectNioEncoder 2122 public void write(byte[] value, int offset, int length) throws IOException { write() method in CodedOutputStream.UnsafeDirectNioEncoder 2145 public void write(ByteBuffer value) throws IOException { write() method in CodedOutputStream.UnsafeDirectNioEncoder 2551 public void write(byte value) throws IOException { write() method in CodedOutputStream.ByteOutputEncoder 2663 public void write(byte[] value, int offset, int length) throws IOException { write() method in CodedOutputStream.ByteOutputEncoder 2677 public void write(ByteBuffer value) throws IOException { write() method in CodedOutputStream.ByteOutputEncoder 2865 public void write(byte value) throws IOException { write() method in CodedOutputStream.OutputStreamEncoder 2979 public void write(byte[] value, int offset, int length) throws IOException { write() method in CodedOutputStream.OutputStreamEncoder 3017 public void write(ByteBuffer value) throws IOException { write() method in CodedOutputStream.OutputStreamEncoder [all...] |
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| H A D | module.c | 135 void *(*write)(void *dest, const void *src, size_t len)) in __apply_relocate_add() 167 write(loc, &val, 8); in __apply_relocate_add() 172 write(loc, &val, 4); in __apply_relocate_add() 179 write(loc, &val, 4); in __apply_relocate_add() 188 write(loc, &val, 4); in __apply_relocate_add() 198 write(loc, &val, 8); in __apply_relocate_add() 229 void *(*write)(void *, const void *, size_t) = memcpy; in apply_relocate_add() 232 write = text_poke; in apply_relocate_add() 237 write); in apply_relocate_add()
|
| /kernel/linux/linux-5.10/arch/s390/mm/ |
| H A D | cmm.c | 246 static int cmm_pages_handler(struct ctl_table *ctl, int write, in cmm_pages_handler() argument 257 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler() 258 if (rc < 0 || !write) in cmm_pages_handler() 265 static int cmm_timed_pages_handler(struct ctl_table *ctl, int write, in cmm_timed_pages_handler() argument 277 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler() 278 if (rc < 0 || !write) in cmm_timed_pages_handler() 285 static int cmm_timeout_handler(struct ctl_table *ctl, int write, in cmm_timeout_handler() argument 292 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler() 297 if (write) { in cmm_timeout_handler()
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| H A D | cache-v6.S | 111 * - the Icache does not read data from the write buffer 127 * - the Icache does not read data from the write buffer 141 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 204 strb r2, [r0] @ write for ownership 216 strbne r2, [r1, #-1] @ write for ownership 234 strlo r2, [r0] @ write for ownership 238 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 261 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 272 strb r2, [r0] @ write for ownership 285 strblo r2, [r0] @ write fo [all...] |
| H A D | cache-fa.S | 70 mcrne p15, 0, ip, c7, c10, 4 @ drain write buffer 98 mcrne p15, 0, ip, c7, c10, 4 @ data write barrier 134 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 155 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 162 * May not write back any entries. If 'start' or 'end' 181 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 187 * Clean (write back) the specified virtual address range. 199 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 214 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
|
| /kernel/linux/linux-6.6/arch/arm/mm/ |
| H A D | cache-v6.S | 113 * - the Icache does not read data from the write buffer 129 * - the Icache does not read data from the write buffer 143 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 206 strb r2, [r0] @ write for ownership 218 strbne r2, [r1, #-1] @ write for ownership 236 strlo r2, [r0] @ write for ownership 240 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 263 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 274 strb r2, [r0] @ write for ownership 287 strblo r2, [r0] @ write fo [all...] |
| H A D | cache-fa.S | 69 mcrne p15, 0, ip, c7, c10, 4 @ drain write buffer 97 mcrne p15, 0, ip, c7, c10, 4 @ data write barrier 133 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 154 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 161 * May not write back any entries. If 'start' or 'end' 180 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 186 * Clean (write back) the specified virtual address range. 198 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 213 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
|
| /kernel/linux/linux-6.6/arch/s390/mm/ |
| H A D | cmm.c | 246 static int cmm_pages_handler(struct ctl_table *ctl, int write, in cmm_pages_handler() argument 257 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_pages_handler() 258 if (rc < 0 || !write) in cmm_pages_handler() 265 static int cmm_timed_pages_handler(struct ctl_table *ctl, int write, in cmm_timed_pages_handler() argument 277 rc = proc_doulongvec_minmax(&ctl_entry, write, buffer, lenp, ppos); in cmm_timed_pages_handler() 278 if (rc < 0 || !write) in cmm_timed_pages_handler() 285 static int cmm_timeout_handler(struct ctl_table *ctl, int write, in cmm_timeout_handler() argument 292 if (!*lenp || (*ppos && !write)) { in cmm_timeout_handler() 297 if (write) { in cmm_timeout_handler()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_domain.c | 47 * Moves a single object to the WC read, and possibly write domain. 49 * @write: ask for write access or read only 55 i915_gem_object_set_to_wc_domain(struct drm_i915_gem_object *obj, bool write) in i915_gem_object_set_to_wc_domain() argument 63 (write ? I915_WAIT_ALL : 0), in i915_gem_object_set_to_wc_domain() 92 /* It should now be out of any other write domains, and we can update in i915_gem_object_set_to_wc_domain() 97 if (write) { in i915_gem_object_set_to_wc_domain() 108 * Moves a single object to the GTT read, and possibly write domain. 110 * @write: ask for write acces 116 i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, bool write) i915_gem_object_set_to_gtt_domain() argument 399 i915_gem_object_set_to_cpu_domain(struct drm_i915_gem_object *obj, bool write) i915_gem_object_set_to_cpu_domain() argument [all...] |
| /third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-key/ |
| H A D | main.c | 74 write(fdout, dump, l); in cose_key_dump() 78 write(fdout, dump, l); in cose_key_dump() 82 write(fdout, hex, strlen(hex)); in cose_key_dump() 83 write(fdout, "\n", 1); in cose_key_dump() 95 write(fdout, dump, l); in cose_key_dump() 99 write(fdout, dump, l); in cose_key_dump() 103 write(fdout, hex, strlen(hex)); in cose_key_dump() 104 write(fdout, "\n", 1); in cose_key_dump() 293 write(fdout, ktmp, lec.used); in main()
|
| /third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
| H A D | vkBuilderUtil.hpp | 159 DescriptorSetUpdateBuilder& write (VkDescriptorSet destSet, 188 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, 1u, descriptorType, pImageInfo, DE_NULL, DE_NULL); in writeSingle() 196 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, 1u, descriptorType, DE_NULL, pBufferInfo, DE_NULL); in writeSingle() 204 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, 1u, descriptorType, DE_NULL, DE_NULL, pTexelBufferView); in writeSingle() 213 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, 1u, descriptorType, DE_NULL, DE_NULL, DE_NULL, pAccelerationStructure); in writeSingle() 223 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, numDescriptors, descriptorType, pImageInfo, DE_NULL, DE_NULL); in writeArray() 232 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, numDescriptors, descriptorType, DE_NULL, pBufferInfo, DE_NULL); in writeArray() 241 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, numDescriptors, descriptorType, DE_NULL, DE_NULL, pTexelBufferView); in writeArray() 251 return write(destSet, destLocation.m_binding, destLocation.m_arrayElement, numDescriptors, descriptorType, DE_NULL, DE_NULL, DE_NULL, pAccelerationStructure); in writeArray()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/ |
| H A D | init.c | 115 if (write(fd, "9\n", 2) != 2) in enable_logging() 116 panic("write(printk)"); in enable_logging() 121 if (write(fd, "1\n", 2) != 2) in enable_logging() 122 panic("write(exception-trace)"); in enable_logging() 127 if (write(fd, "1\n", 2) != 2) in enable_logging() 128 panic("write(panic_on_warn)"); in enable_logging() 203 if (write(fd, "success\n", 8) != 8) in launch_tests() 204 panic("write(success_dev)"); in launch_tests() 233 if (write(1, "\0\0\0\0\n", 5) == 5) in ensure_console() 247 write(f in clear_leaks() [all...] |
| /kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/ |
| H A D | osdep_service.c | 228 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full() 239 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty() 255 DBG_871X("%s on %u\n", __func__, cbuf->write); in rtw_cbuf_push() 256 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 257 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push() 295 cbuf->write = cbuf->read = 0; in rtw_cbuf_alloc()
|
| /kernel/linux/linux-5.10/scripts/gdb/linux/ |
| H A D | symbols.py | 44 gdb.write("refreshing all symbols to reload module " 77 gdb.write("scanning for modules in {0}\n".format(path)) 126 gdb.write("loading @{addr}: {filename}\n".format( 136 gdb.write("no module object found for '{0}'\n".format(module_name)) 139 gdb.write("loading vmlinux\n") 159 gdb.write("no modules found\n") 183 gdb.write("Note: symbol update on module loading not supported "
|
| /kernel/linux/linux-6.6/scripts/gdb/linux/ |
| H A D | symbols.py | 44 gdb.write("refreshing all symbols to reload module " 77 gdb.write("scanning for modules in {0}\n".format(path)) 130 gdb.write("loading @{addr}: {filename}\n".format( 139 gdb.write("no module object found for '{0}'\n".format(module_name)) 142 gdb.write("loading vmlinux\n") 163 gdb.write("no modules found\n") 188 gdb.write("Note: symbol update on module loading not supported "
|
| /test/testfwk/developer_test/src/core/build/ |
| H A D | build_manager.py | 67 gn_file.write("group(\"make_temp_test\") {\n") 68 gn_file.write(" testonly = true\n") 69 gn_file.write(" deps = []\n") 71 gn_file.write(" deps += [\n") 74 gn_file.write(" \"%s\",\n" % target) 75 gn_file.write(" ]\n") 76 gn_file.write("}\n")
|