public int read() {if (ptr == data.length)return -1;return data[ptr++] & 0xff;}

public int read ( ) { if ( ptr == data . length ) return - 1 ; return data [ ptr ++ ] & 0xff ; }
public override int Read(){if (ptr == data.Length){return -1;}return data[ptr++] & unchecked((int)(0xff));}
