private int RequireByte() { int b = _in.ReadByte(); if (b < 0) { // Corrupted stream throw new EndOfStreamException(); } return b; }