Lines Matching refs:ended
101 this.ended = false;
254 } else if (state.ended) {
278 return !state.ended &&
358 if (n <= 0 || (state.length === 0 && state.ended))
370 return state.ended ? state.length : 0;
401 state.ended)) {
402 debug('read: emitReadable', state.length, state.ended);
403 if (state.length === 0 && state.ended)
413 if (n === 0 && state.ended) {
454 if (state.ended || state.reading || state.destroyed) {
494 if (!state.ended)
498 if (nOrig !== n && state.ended)
512 if (state.ended) return;
520 state.ended = true;
553 debug('emitReadable_', state.destroyed, state.length, state.ended);
554 if (!state.destroyed && (state.length || state.ended)) {
567 !state.ended &&
610 while (!state.reading && !state.ended &&
998 if (state.decoder && !state.ended) {
1321 state.ended = true;