System.HexConvert.ToBuffer C# (CSharp) Method

ToBuffer() public static method

public static ToBuffer ( char hexBuffer, int offset, int count ) : byte[]
hexBuffer char
offset int
count int
return byte[]
		public static byte[] ToBuffer(char[] hexBuffer, int offset, int count)
		{
			if (hexBuffer == null) throw new ArgumentNullException("hexBuffer");
			if (offset < 0) throw new ArgumentOutOfRangeException("offset");
			if (count < 0) throw new ArgumentOutOfRangeException("count");
			if (offset + count > hexBuffer.Length) throw new ArgumentOutOfRangeException("count");

			var buffer = new byte[(hexBuffer.Length + 1) / 2];
			CopyHexBufferToBuffer(hexBuffer, offset, count, buffer, 0);
			return buffer;
		}
		public static byte[] ToBuffer(string hexString)

Same methods

HexConvert::ToBuffer ( char hexBuffer ) : byte[]
HexConvert::ToBuffer ( string hexString ) : byte[]
HexConvert::ToBuffer ( string hexString, int offset, int count ) : byte[]