/// <summary>
 /// Writes a unique identifier into <paramref name="destination"/> and then 'advancess'.
 /// </summary>
 /// <exception cref="IndexOutOfRangeException">Thrown if the <paramref name="uniqueId"/> does not fit into the <paramref name="destination"/>.</exception>
 public static void WriteUniqueId(this IHFormat format, ref Span <byte> destination, long uniqueId)
 {
     format.WriteUniqueId(destination, uniqueId, out int bytesWritten);
     destination = destination.Slice(bytesWritten);
 }