public long readLE(int n) { byte[] b = new byte[n]; if (base.Read(b, 0, b.Length) < b.Length) { throw new OtpErlangDecodeException("Cannot read from input stream"); } long v = 0; while (n-- > 0) { v = v << 8 | (long)b[n] & 0xff; } return v; }