public void EndDiscardAll() { throwifcompleted(); if (hasSubSpeculator) { doSubSpeculatorEndDiscardAll(); return; } completed = true; parentStream.EndDiscardAll(); }