Home
last modified time | relevance | path

Searched refs:read (Results 1 - 25 of 2617) sorted by relevance

12345678910>>...105

/third_party/mesa3d/src/intel/tools/
H A Daub_read.c74 parse_error(struct aub_read *read, const uint32_t *p, const char *fmt, ...) in parse_error() argument
76 if (!read->error) in parse_error()
84 read->error(read->user_data, p, msg); in parse_error()
90 handle_trace_header(struct aub_read *read, const uint32_t *p) in handle_trace_header() argument
101 if (!intel_get_device_info_from_pci_id(aub_pci_id, &read->devinfo)) { in handle_trace_header()
102 parse_error(read, p, in handle_trace_header()
113 if (read->info) in handle_trace_header()
114 read->info(read in handle_trace_header()
120 handle_memtrace_version(struct aub_read *read, const uint32_t *p) handle_memtrace_version() argument
145 handle_trace_block(struct aub_read *read, const uint32_t *p) handle_trace_block() argument
189 handle_memtrace_reg_write(struct aub_read *read, const uint32_t *p) handle_memtrace_reg_write() argument
273 do_write(struct aub_read *read, uint32_t address_space, uint64_t addr, const void *data, uint32_t size) do_write() argument
299 handle_memtrace_mem_write(struct aub_read *read, const uint32_t *p) handle_memtrace_mem_write() argument
310 handle_memtrace_mem_write_discont(struct aub_read *read, const uint32_t *p) handle_memtrace_mem_write_discont() argument
331 aub_read_command(struct aub_read *read, const void *data, uint32_t data_len) aub_read_command() argument
[all...]
/third_party/node/test/parallel/
H A Dtest-stream2-transform.js62 assert.strictEqual(pt.read(5).toString(), 'foogb');
63 assert.strictEqual(pt.read(5).toString(), 'arkba');
64 assert.strictEqual(pt.read(5).toString(), 'zykue');
65 assert.strictEqual(pt.read(5).toString(), 'l');
81 assert.strictEqual(pt.read(), 1);
82 assert.strictEqual(pt.read(), true);
83 assert.strictEqual(pt.read(), false);
84 assert.strictEqual(pt.read(), 0);
85 assert.strictEqual(pt.read(), 'foo');
86 assert.strictEqual(pt.read(), '');
[all...]
H A Dtest-buffer-read.js5 // Testing basic buffer read functions
8 function read(buff, funx, args, expected) { function
17 read(buf, 'readDoubleBE', [1], -3.1827727774563287e+295);
18 read(buf, 'readDoubleLE', [1], -6.966010051009108e+144);
21 read(buf, 'readFloatBE', [1], -1.6691549692541768e+37);
22 read(buf, 'readFloatLE', [1], -7861303808);
25 read(buf, 'readInt8', [1], -3);
28 read(buf, 'readInt16BE', [1], -696);
29 read(buf, 'readInt16LE', [1], 0x48fd);
32 read(bu
[all...]
H A Dtest-whatwg-readablestream.js276 (async function read() {
278 let res = await reader.read();
282 res = await reader.read();
294 (async function read() {
296 const res = await reader.read();
325 assert.strictEqual(typeof reader.read, 'function');
328 const read1 = reader.read();
329 const read2 = reader.read();
356 assert.rejects(reader.read(), {
398 reader.read()
[all...]
H A Dtest-stream-pipeline.js30 const read = new Readable({
31 read() {}
46 read.push(expected[i]);
48 read.push(null);
50 pipeline(read, write, common.mustSucceed(() => {
57 const read = new Readable({
58 read() {}
62 pipeline(read, () => {});
73 const read = new Readable({
74 read() {}
[all...]
H A Dtest-stream-readable-async-iterators.js57 const readable = new Readable({ autoDestroy: false, read() {} });
73 const readable = new Readable({ objectMode: true, read() {} });
86 console.log('read without for..await');
90 read() {}
116 console.log('read without for..await deferred');
119 read() {}
156 console.log('read without for..await with errors');
160 read() {}
203 read() {}
213 console.log('read objec
[all...]
H A Dtest-stream-readable-unshift.js9 const readable = new Readable({ read() {} });
24 const readable = new Readable({ read() {} });
40 const readable = new Readable({ read() {} });
82 const r1 = new Readable({ read() {} });
86 const r2 = new Readable({ read() {}, encoding: streamEncoding });
106 const r1 = new Readable({ read() {} });
110 const r2 = new Readable({ read() {}, encoding });
117 const readable = new Readable({ objectMode: true, read() {} });
155 while (null !== (stream.read())) {
H A Dtest-fs-read-stream-err.js44 const read = fs.read;
45 fs.read = function() {
47 read.apply(fs, arguments);
49 fs.read = common.mustCall(function() {
55 fs.read = () => {
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/data/
H A DFontInputStream.java90 private long length; // bound on length of data to read
106 * @param length the maximum length of bytes to read
115 public int read() throws IOException { in read() method in FontInputStream
119 int b = super.read(); in read()
127 public int read(byte[] b, int off, int len) throws IOException { in read() method in FontInputStream
132 int bytesRead = super.read(b, off, bytesToRead); in read()
138 public int read(byte[] b) throws IOException { in read() method in FontInputStream
139 return this.read(b, 0, b.length); in read()
158 return this.read(); in readChar()
168 return 0xffff & (this.read() << in readUShort()
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
H A Dinput_test.cpp39 EXPECT_EQ(0u, input.read(nullptr, 1, &lineNo)); in TEST()
83 EXPECT_EQ(1u, input1.read(buf, maxSize, &lineNo)); in TEST()
85 EXPECT_EQ(1u, input1.read(buf, maxSize, &lineNo)); in TEST()
87 EXPECT_EQ(1u, input1.read(buf, maxSize, &lineNo)); in TEST()
89 EXPECT_EQ(0u, input1.read(buf, maxSize, &lineNo)); in TEST()
93 EXPECT_EQ(2u, input2.read(buf, maxSize, &lineNo)); in TEST()
95 EXPECT_EQ(1u, input2.read(buf, maxSize, &lineNo)); in TEST()
97 EXPECT_EQ(0u, input2.read(buf, maxSize, &lineNo)); in TEST()
101 EXPECT_EQ(3u, input3.read(buf, maxSize, &lineNo)); in TEST()
103 EXPECT_EQ(0u, input3.read(bu in TEST()
[all...]
/third_party/node/test/fixtures/wpt/streams/resources/
H A Drs-test-templates.js105 promise_rejects_exactly(t, error, reader.read())
116 promise_rejects_exactly(t, error, reader.read()),
117 promise_rejects_exactly(t, error, reader.read()),
121 }, label + ': read() twice should give the error each time');
196 assert_equals(typeof reader.read, 'function', 'has a read method');
213 reader.read().then(
214 t.unreached_func('read() should not fulfill'),
215 t.unreached_func('read() should not reject')
220 }, label + ': read() shoul
[all...]
/third_party/backends/backend/
H A Depson2_net.c40 ssize_t read = -1; in sanei_epson_net_read_raw() local
52 read = sanei_tcp_read(s->fd, buf, wanted); in sanei_epson_net_read_raw()
59 if (read < wanted) { in sanei_epson_net_read_raw()
63 return read; in sanei_epson_net_read_raw()
70 ssize_t read = 0; in sanei_epson_net_read_buf() local
81 read = wanted; in sanei_epson_net_read_buf()
83 s->netptr += read; in sanei_epson_net_read_buf()
84 s->netlen -= read; in sanei_epson_net_read_buf()
93 return read; in sanei_epson_net_read_buf()
106 ssize_t read in sanei_epson_net_read() local
[all...]
H A Drts8891_low.c103 /* since they are read-only registers */ in rts8891_write_all()
174 /* read 'base' button status */ in rts8891_read_buttons()
179 /* read 'extended' button status */ in rts8891_read_buttons()
201 * amount is read, it may no be ready, leading to errors. To work around
202 * it, we read data count one more time before reading.
208 SANE_Word count, read, len, dummy; in rts8891_simple_scan() local
215 read = 0; in rts8891_simple_scan()
237 read = 0; in rts8891_simple_scan()
238 while ((read < total) && (count != 0 || (control & 0x08) == 0x08)) in rts8891_simple_scan()
243 /* read */ in rts8891_simple_scan()
627 SANE_Int count, read, len, dummy; read_data() local
[all...]
/third_party/skia/third_party/externals/angle2/scripts/
H A Dbmp_to_nv12.py20 magic = bmp_file.read(2)
25 file_size, = struct.unpack("I", bmp_file.read(4))
28 bmp_file.read(4)
30 offset, = struct.unpack("I", bmp_file.read(4))
32 headersize, = struct.unpack("I", bmp_file.read(4))
33 width, = struct.unpack("i", bmp_file.read(4))
34 height, = struct.unpack("i", bmp_file.read(4))
35 planes, = struct.unpack("H", bmp_file.read(2))
36 bpp, = struct.unpack("H", bmp_file.read(2))
37 compression, = struct.unpack("i", bmp_file.read(
[all...]
/third_party/skia/third_party/externals/oboe/samples/parselib/src/main/cpp/wav/
H A DWavFmtChunkHeader.cpp58 void WavFmtChunkHeader::read(InputStream *stream) { in read() function in parselib::WavFmtChunkHeader
59 WavChunkHeader::read(stream); in read()
60 stream->read(&mEncodingId, sizeof(mEncodingId)); in read()
61 stream->read(&mNumChannels, sizeof(mNumChannels)); in read()
62 stream->read(&mSampleRate, sizeof(mSampleRate)); in read()
63 stream->read(&mAveBytesPerSecond, sizeof(mAveBytesPerSecond)); in read()
64 stream->read(&mBlockAlign, sizeof(mBlockAlign)); in read()
65 stream->read(&mSampleSize, sizeof(mSampleSize)); in read()
68 // only read this if NOT PCM in read()
69 stream->read( in read()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
H A DStackMapParser.h58 return read<uint64_t>(P); in getFunctionAddress()
63 return read<uint64_t>(P + sizeof(uint64_t)); in getStackSize()
68 return read<uint64_t>(P + (2 * sizeof(uint64_t))); in getRecordCount()
89 uint64_t getValue() const { return read<uint64_t>(P); } in getValue()
120 return read<uint16_t>(P + SizeOffset); in getSizeInBytes()
126 return read<uint16_t>(P + DwarfRegNumOffset); in getDwarfRegNum()
132 return read<uint32_t>(P + SmallConstantOffset); in getSmallConstant()
139 return read<uint32_t>(P + SmallConstantOffset); in getConstantIndex()
147 return read<int32_t>(P + SmallConstantOffset); in getOffset()
174 return read<uint16_ in getDwarfRegNum()
419 static T read(const uint8_t *P) { read() function in llvm::StackMapParser::LocationKind
[all...]
/third_party/python/Lib/test/
H A Dtest_gzip.py64 self.assertEqual(f.read(), b_data)
88 d = f.read()
118 self.assertEqual(f.read(), data1)
124 d = f.read()
148 self.assertEqual(f.read(size), data1)
162 f.read(1)
185 d = f.read()
202 ztxt = zgfile.read(8192)
211 self.assertEqual(f.read(), data1 * 50)
252 # Try seek, read tes
[all...]
H A Dtest_memoryio.py31 self.assertEqual(buf[:1], bytesIo.read(1))
32 self.assertEqual(buf[1:5], bytesIo.read(4))
33 self.assertEqual(buf[5:], bytesIo.read(900))
34 self.assertEqual(self.EOF, bytesIo.read())
40 self.assertEqual(buf, bytesIo.read())
41 self.assertEqual(self.EOF, bytesIo.read())
47 bytesIo.read(5)
49 self.assertEqual(buf, bytesIo.read())
52 self.assertEqual(buf[3:], bytesIo.read())
162 self.assertEqual(memio.read(
[all...]
H A Dtest_bz2.py112 self.assertRaises(TypeError, bz2f.read, float())
113 self.assertEqual(bz2f.read(), self.TEXT)
118 self.assertRaises(OSError, bz2f.read)
123 self.assertRaises(TypeError, bz2f.read, float())
124 self.assertEqual(bz2f.read(), self.TEXT * 5)
127 # Test BZ2File.read() on a multi-stream archive where a stream
128 # boundary coincides with the end of the raw read buffer.
134 self.assertRaises(TypeError, bz2f.read, float())
135 self.assertEqual(bz2f.read(), self.TEXT * 5)
142 self.assertEqual(bz2f.read(), sel
[all...]
/third_party/node/test/fixtures/wpt/streams/readable-byte-streams/
H A Dgeneral.any.js245 const read = reader.read();
247 await promise_rejects_js(t, TypeError, read, 'pending read must reject');
248 }, 'ReadableStream with byte source: releaseLock() on ReadableStreamDefaultReader must reject pending read()');
256 const read = reader.read(new Uint8Array(1));
258 await promise_rejects_js(t, TypeError, read, 'pending read must reject');
259 }, 'ReadableStream with byte source: releaseLock() on ReadableStreamBYOBReader must reject pending read()');
[all...]
/third_party/node/test/fixtures/wpt/streams/readable-streams/
H A Dfloating-point-total-queue-size.any.js19 return reader.read().then(() => {
23 return reader.read();
39 return reader.read().then(() => {
43 return reader.read();
63 return reader.read().then(() => {
67 return reader.read();
72 return reader.read();
89 return reader.read().then(() => {
93 return reader.read();
/third_party/typescript/tests/baselines/reference/
H A DdestructureOptionalParameter.js15 (selector: Type | string, {descendants, read}?: {
17 read?: any;
19 new (selector: Type | string, {descendants, read}?: {
21 read?: any;
50 (selector: Type | string, { descendants, read }?: {
52 read?: any;
54 new (selector: Type | string, { descendants, read }?: {
56 read?: any;
/third_party/python/Lib/zoneinfo/
H A D_common.py51 # Now we need to read the second header, which is not the same
62 f">{timecnt}{time_type}", fobj.read(timecnt * time_size)
64 trans_idx = struct.unpack(f">{timecnt}B", fobj.read(timecnt))
72 *(struct.unpack(">lbb", fobj.read(6)) for i in range(typecnt))
79 # Now read the abbreviations. They are null-terminated strings, indexed
84 abbr_chars = fobj.read(charcnt)
113 c = fobj.read(1) # Should be \n
117 while (c := fobj.read(1)) != b"\n":
145 if stream.read(4) != b"TZif":
148 _version = stream.read(
[all...]
/third_party/skia/third_party/externals/tint/src/utils/io/
H A Dcommand_posix.cc79 read = File(pipes[0]); in Pipe()
84 /// Closes both the read and write files (if they're not already closed)
86 read.Close(); in Close()
90 /// @returns true if the pipe has an open read or write file
91 operator bool() { return read || write; } in operator bool()
94 File read; member in tint::utils::__anon26162::Pipe
199 poll_fds[0].fd = stdout_pipe.read; in Exec()
201 poll_fds[1].fd = stderr_pipe.read; in Exec()
213 auto n = read(stdout_pipe.read, bu in Exec()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
H A DCOFFModuleDefinition.cpp160 void read() { in read() function in llvm::object::Parser
170 read(); in readAsInt()
177 read(); in expect()
186 read(); in parseOne()
192 read(); in parseOne()
233 read(); in parseExport()
235 read(); in parseExport()
252 read(); in parseExport()
256 read(); in parseExport()
266 read(); in parseExport()
[all...]

Completed in 10 milliseconds

12345678910>>...105