MCPcopy Index your code
hub / github.com/dataease/SQLBot / Transform

Function Transform

frontend/public/swagger-ui-bundle.js:26035–26052  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

26033 (u.needReadable || u.length < u.highWaterMark) && this._read(u.highWaterMark))
26034 }
26035 function Transform(s) {
26036 if (!(this instanceof Transform)) return new Transform(s)
26037 ;(C.call(this, s),
26038 (this._transformState = {
26039 afterTransform: afterTransform.bind(this),
26040 needTransform: !1,
26041 transforming: !1,
26042 writecb: null,
26043 writechunk: null,
26044 writeencoding: null,
26045 }),
26046 (this._readableState.needReadable = !0),
26047 (this._readableState.sync = !1),
26048 s &&
26049 ('function' == typeof s.transform && (this._transform = s.transform),
26050 'function' == typeof s.flush && (this._flush = s.flush)),
26051 this.on('prefinish', prefinish))
26052 }
26053 function prefinish() {
26054 var s = this
26055 'function' != typeof this._flush || this._readableState.destroyed

Callers

nothing calls this directly

Calls 2

onMethod · 0.65
bindMethod · 0.45

Tested by

no test coverage detected