/// <summary> /// Updates the total number of written bytes by the length of a Turtle document. /// </summary> /// <param name="writer">The Turtle writer.</param> /// <exception cref="ArgumentNullException"><paramref name="writer"/> is <see langword="null"/>.</exception> public static void UpdateStats(SequentialTurtleWriter writer) { if (writer == null) { throw new ArgumentNullException("writer"); } long bytes = writer.GetCurrentStreamSize(); long triples = writer.GetCurrentTripleCount(); ConsoleHelper.WriteSuccessLine("{0:F1} MB written; {1} triple(s) created.", (double)bytes / 1024 / 1024, triples); byteCount += bytes; tripleCount += triples; }