using System;

namespace Steamworks
{
	static
	{
		static internal mixin TerminateString(StringView str)
		{
#if STEAMWORKS_AUTO_TERMINATE_STRINGS
			var str;
			if(!str.IsNull && (str.Ptr + str.Length) != '\0')
			{
				String tmp = scope:mixin .(str, .NullTerminate);
				str = tmp;
			}
			str.Ptr
#else
			str.Ptr
#endif
		}
	}
}
