Lines Matching defs:Writable
40 module.exports = Writable;
41 Writable.WritableState = WritableState;
70 ObjectSetPrototypeOf(Writable.prototype, Stream.prototype);
71 ObjectSetPrototypeOf(Writable, Stream);
220 function Writable(options) {
221 // Writable ctor is applied to Duplexes, too.
225 // Trying to use the custom `instanceof` for Writable here will also break the
233 if (!isDuplex && !FunctionPrototypeSymbolHasInstance(Writable, this))
234 return new Writable(options);
271 ObjectDefineProperty(Writable, SymbolHasInstance, {
275 if (this !== Writable) return false;
281 // Otherwise people can pipe Writable streams, which is just wrong.
282 Writable.prototype.pipe = function() {
336 Writable.prototype.write = function(chunk, encoding, cb) {
340 Writable.prototype.cork = function() {
344 Writable.prototype.uncork = function() {
355 Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
587 Writable.prototype._write = function(chunk, encoding, cb) {
595 Writable.prototype._writev = null;
597 Writable.prototype.end = function(chunk, encoding, cb) {
766 ObjectDefineProperties(Writable.prototype, {
887 Writable.prototype.destroy = function(err, cb) {
901 Writable.prototype._undestroy = destroyImpl.undestroy;
902 Writable.prototype._destroy = function(err, cb) {
906 Writable.prototype[EE.captureRejectionSymbol] = function(err) {
919 Writable.fromWeb = function(writableStream, options) {
925 Writable.toWeb = function(streamWritable) {