public int read() throws IOException {if (buf == null) {throw new IOException();}if (pos < buf.length) {return (buf[pos++] & 0xFF);}return in.read();}
public override int read(){if (buf == null){throw new System.IO.IOException();}if (pos < buf.Length){return (buf[pos++] & unchecked((int)(0xFF)));}return @in.read();}