/// <summary> /// Reads eight-bytes signed value from the underlaying stream. /// </summary> /// <returns><see cref="long"/> read</returns> /// <exception cref="IOException">Thrown when end of stream was reached and <see cref="Unsecure"/> is false.</exception> public long ReadLong() { AssertRead(8, "Long"); return(BE ? ByteUtils.ToLongBE(buffer) : ByteUtils.ToLongLE(buffer)); }