Lines Matching refs:readable
9 const readable = new Readable({ read() {} });
13 readable.on('data', common.mustCall((chunk) => {
18 readable.unshift(string);
24 const readable = new Readable({ read() {} });
29 readable.on('data', common.mustCall((chunk) => {
34 readable.push(push);
35 readable.unshift(unshift);
40 const readable = new Readable({ read() {} });
45 readable.on('data', common.mustCall((chunk) => {
49 readable.unshift(string, encoding);
57 function checkEncoding(readable) {
63 readable.on('data', common.mustCall((chunk) => {
78 readable.unshift(string, encoding);
96 function checkEncoding(readable) {
98 readable.on('data', common.mustCall((chunk) => {
102 readable.push(string);
103 readable.unshift(string);
117 const readable = new Readable({ objectMode: true, read() {} });
121 readable.on('data', common.mustCall((chunk) => {
126 readable.unshift(chunk);
156 // Remove the 'readable' listener before unshifting
157 stream.removeListener('readable', onRead);
167 stream.once('readable', common.mustCall(onRead));