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

Method constructor

lib/internal/quic/quic.js:1611–1628  ·  view source on GitHub ↗

* @param {symbol} privateSymbol * @param {object} handle * @param {QuicSession} session * @param {number} direction * @param {boolean} [isLocal]

(privateSymbol, handle, session, direction, isLocal)

Source from the content-addressed store, hash-verified

1609 * @param {boolean} [isLocal]
1610 */
1611 constructor(privateSymbol, handle, session, direction, isLocal) {
1612 assertPrivateSymbol(privateSymbol);
1613
1614 this.#handle = handle;
1615 handle[kOwner] = this;
1616 const inner = this.#inner;
1617 inner.session = session;
1618 inner.direction = direction;
1619 inner.isLocal = isLocal;
1620 inner.state = new QuicStreamState(
1621 kPrivateConstructor, handle.state, handle.stateByteOffset);
1622
1623 if (hasObserver('quic')) {
1624 startPerf(this, kPerfEntry, { type: 'quic', name: 'QuicStream' });
1625 }
1626
1627 debug('stream created');
1628 }
1629
1630 get [kValidatedSource]() { return true; }
1631

Callers

nothing calls this directly

Calls 4

assertPrivateSymbolFunction · 0.85
hasObserverFunction · 0.85
startPerfFunction · 0.85
debugFunction · 0.50

Tested by

no test coverage detected