public void TimingTestWriteHexValuesImpl()
		{
			StringBuilder b = new StringBuilder(1024 * 1024 * 2 * 100);
			for (int i = 0; i < 100; i++)
			{
				b.AppendAsHexCharsLowerCase(_array);
			}
		}
Exemplo n.º 2
0
		public void TestAppendAsHexCharsLowerCase()
		{
			StringBuilder b1 = new StringBuilder(1024 * 1024 * 2);
			StringBuilder b2 = new StringBuilder(1024 * 1024 * 2);
			StandardWriteHexValue(b1, _array);
			b2.AppendAsHexCharsLowerCase(_array);
			StringAssert.AreEqualIgnoringCase(b1.ToString(), b2.ToString());
		}
Exemplo n.º 3
0
		public static string ToHexStringLowerCase(this byte[] array, char separator)
		{
			StringBuilder ret = new StringBuilder(array.Length * 3);
			ret.AppendAsHexCharsLowerCase(array,separator);
			return ret.ToString();
		}