Home
last modified time | relevance | path

Searched refs:duplex (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-stream-duplex-destroy.js8 const duplex = new Duplex({ constant
13 duplex.resume();
15 duplex.on('end', common.mustNotCall());
16 duplex.on('finish', common.mustNotCall());
17 duplex.on('close', common.mustCall());
19 duplex.destroy();
20 assert.strictEqual(duplex.destroyed, true);
24 const duplex = new Duplex({ constant
28 duplex.resume();
32 duplex.on('end', common.mustNotCall());
[all …]
Dtest-whatwg-webstreams-adapters-to-readablewritablepair.js20 const duplex = new PassThrough(); constant
24 } = newReadableWritablePairFromDuplex(duplex);
37 duplex.destroy();
39 duplex.on('close', common.mustCall());
47 const duplex = new PassThrough(); constant
51 } = newReadableWritablePairFromDuplex(duplex);
53 duplex.on('close', common.mustCall());
54 duplex.on('error', common.mustCall((reason) => {
64 duplex.destroy(error);
69 const duplex = new PassThrough(); constant
[all …]
Dtest-whatwg-webstreams-adapters-to-streamduplex.js29 const duplex = newStreamDuplexFromReadableWritablePair(transform); constant
34 duplex.destroy();
36 duplex.on('close', common.mustCall(() => {
45 const duplex = newStreamDuplexFromReadableWritablePair(transform); constant
50 duplex.destroy(error);
51 duplex.on('error', common.mustCall((reason) => {
55 duplex.on('close', common.mustCall(() => {
64 const duplex = new newStreamDuplexFromReadableWritablePair(transform); constant
66 duplex.end();
67 duplex.resume();
[all …]
Dtest-stream-duplex-readable-writable.js8 const duplex = new Duplex({ constant
11 assert.strictEqual(duplex.readable, false);
12 duplex.push('asd');
13 duplex.on('error', common.mustCall((err) => {
16 duplex.on('data', common.mustNotCall());
17 duplex.on('end', common.mustNotCall());
21 const duplex = new Duplex({ constant
25 assert.strictEqual(duplex.writable, false);
26 duplex.write('asd');
27 duplex.on('error', common.mustCall((err) => {
[all …]
Dtest-stream-duplex-from.js152 const duplex = new Duplex(); constant
153 assert.strictEqual(Duplex.from(duplex), duplex);
160 const duplex = Duplex.from(blob); constant
161 duplex.on('data', common.mustCall((arrayBuffer) => {
198 const duplex = Duplex.from({ constant
209 assert.strictEqual(duplex.writable, false);
215 const duplex = Duplex.from({ constant
223 duplex.write(msg);
224 assert.strictEqual(duplex.readable, false);
231 const duplex = Duplex.from({ constant
[all …]
Dtest-stream-duplex-writable-finished.js15 const duplex = new Duplex(); constant
17 duplex._write = (chunk, encoding, cb) => {
19 assert.strictEqual(duplex.writableFinished, false);
23 duplex.on('finish', common.mustCall(() => {
24 assert.strictEqual(duplex.writableFinished, true);
27 duplex.end('testing finished state', common.mustCall(() => {
28 assert.strictEqual(duplex.writableFinished, true);
Dtest-stream-duplex.js76 const duplex = Duplex.fromWeb(pair); constant
78 duplex.write(dataToWrite);
79 duplex.once('data', common.mustCall((chunk) => {
105 const duplex = Duplex.fromWeb(pair, { encoding: 'utf8', objectMode: true }); constant
107 duplex.write(dataToWrite);
108 duplex.once('data', common.mustCall((chunk) => {
117 const duplex = Duplex({ constant
127 const { writable, readable } = Duplex.toWeb(duplex);
Dtest-stream-inheritance.js8 const duplex = new Duplex({ read() {}, write() {} }); constant
13 assert.ok(duplex instanceof Readable);
18 assert.ok(duplex instanceof Writable);
23 assert.ok(duplex instanceof Duplex);
28 assert.ok(!(duplex instanceof Transform));
Dtest-whatwg-webstreams-adapters-to-writablestream.js140 const duplex = new PassThrough(); constant
141 duplex.setEncoding('utf8');
142 const writableStream = newWritableStreamFromStreamWritable(duplex);
149 duplex.on('data', common.mustCall((chunk) => {
163 const duplex = new Duplex({ writable: false }); constant
164 const writableStream = newWritableStreamFromStreamWritable(duplex);
Dtest-stream-pipeline-queued-end-in-destroy.js15 const duplex = new Duplex({ constant
28 duplex.on('finished', common.mustNotCall());
30 pipeline(readable, duplex, common.mustCall((err) => {
Dtest-stream-readable-aborted.js60 const duplex = new Duplex({ constant
64 duplex.destroy();
65 assert.strictEqual(duplex.readableAborted, false);
Dtest-tls-socket-allow-half-open-option.js24 const duplex = new stream.Duplex({ constant
28 const socket = new tls.TLSSocket(duplex, { allowHalfOpen: true });
Dtest-whatwg-webstreams-adapters-to-readablestream.js199 const duplex = new Duplex({ readable: false }); constant
200 duplex.destroy();
201 const readableStream = newReadableStreamFromStreamReadable(duplex);
Dtest-stream-pipeline.js1458 const duplex = new PassThrough();
1462 await pipelinePromise(read, duplex);
1464 assert.strictEqual(duplex.destroyed, false);
1478 const duplex = new PassThrough();
1482 await pipelinePromise(read, duplex, { end: false });
1484 assert.strictEqual(duplex.destroyed, false);
1485 assert.strictEqual(duplex.writableEnded, false);
/third_party/node/lib/internal/webstreams/
Dadapters.js571 function newReadableWritablePairFromDuplex(duplex) { argument
578 if (typeof duplex?._writableState !== 'object' ||
579 typeof duplex?._readableState !== 'object') {
580 throw new ERR_INVALID_ARG_TYPE('duplex', 'stream.Duplex', duplex);
583 if (isDestroyed(duplex)) {
592 isWritable(duplex) ?
593 newWritableStreamFromStreamWritable(duplex) :
596 if (!isWritable(duplex))
600 isReadable(duplex) ?
601 newReadableStreamFromStreamReadable(duplex) :
[all …]
/third_party/cups-filters/filter/
Dpcl-common.h40 #define pcl_set_duplex(duplex,landscape)\ argument
41 if (duplex) printf("\033&l%dS", (duplex) + (landscape))
Durftopdf.cpp267 uint8_t duplex; member
461 page_header.duplex = page_header_orig.duplex; in main()
474 iprintf("Duplex Mode : %d\n", page_header.duplex); in main()
/third_party/cups-filters/cupsfilters/
Dppdgenerator.h65 const char *pdl, int color, int duplex);
68 const char *pdl, int color, int duplex,
/third_party/python/Lib/asyncio/
Dwindows_utils.py32 def pipe(*, duplex=False, overlapped=(True, True), bufsize=BUFSIZE): argument
38 if duplex:
136 stdin_rh, stdin_wh = pipe(overlapped=(False, True), duplex=True)
/third_party/node/lib/internal/streams/
Dduplex.js136 Duplex.toWeb = function(duplex) { argument
137 return lazyWebStreams().newReadableWritablePairFromDuplex(duplex);
/third_party/cups-filters/filter/pdftopdf/
Dpdftopdf_processor.h25 duplex(false), in ProcessingParameters()
72 bool duplex; member
/third_party/typescript/scripts/build/
Dutils.mjs216 duplex.push(file);
221 const duplex = new Duplex({
253 const endThenCb = () => (duplex.push(null), cb()); // signal end of read queue
267 return duplex;
/third_party/node/deps/undici/src/types/
Dfetch.d.ts118 duplex?: RequestDuplex
154 readonly duplex: RequestDuplex
/third_party/python/Lib/multiprocessing/
Dconnection.py516 def Pipe(duplex=True): argument
520 if duplex:
535 def Pipe(duplex=True): argument
540 if duplex:
570 c1 = PipeConnection(h1, writable=duplex)
571 c2 = PipeConnection(h2, readable=duplex)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.cpp306 unsigned duplex = 0; in check() local
399 ++duplex; in check()
421 (duplex > 1 || (duplex && memory))) { in check()

1234