public override long readLong() { //byte[] longbytes = new byte[8]; //for (int i = longbytes.Length-1; i >= 0; i--) longbytes[i] = read(); //return BitConverter.ToInt64(longbytes, 0); return ((long)(((ulong) read() << 56) | ((ulong) read() << 48) | ((ulong) read() << 40) | ((ulong) read() << 32) | ((ulong) read() << 24) | ((ulong) read() << 16) | ((ulong) read() << 8) | ((ulong) read()))); }