MCPcopy Index your code
hub / github.com/nodejs/node / makeBitMapDescriptor

Function makeBitMapDescriptor

lib/internal/streams/writable.js:125–134  ·  view source on GitHub ↗
(bit)

Source from the content-addressed store, hash-verified

123
124// TODO(benjamingr) it is likely slower to do it this way than with free functions
125function makeBitMapDescriptor(bit) {
126 return {
127 enumerable: false,
128 get() { return (this[kState] & bit) !== 0; },
129 set(value) {
130 if (value) this[kState] |= bit;
131 else this[kState] &= ~bit;
132 },
133 };
134}
135ObjectDefineProperties(WritableState.prototype, {
136 // Object stream flag to indicate whether or not this stream
137 // contains buffers or objects.

Callers 1

writable.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…