* @param {symbol} privateSymbol * @param {object} handle * @param {QuicSession} session * @param {number} direction * @param {boolean} [isLocal]
(privateSymbol, handle, session, direction, isLocal)
| 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 |
nothing calls this directly
no test coverage detected