public bool ReadBoolean() { int ch = this.Read(); if (ch < 0) throw new EndOfStreamException(); return (ch != 0); }