CSPspEmu.Debugger.GdbServerConnectionBase.hexDecode C# (CSharp) Method

hexDecode() protected method

protected hexDecode ( string hexString ) : byte[]
hexString string
return byte[]
        protected byte[] hexDecode(string hexString)
        {
            var r = new List<byte>();
            for (int n = 0; n < hexString.Length; n += 2) {
                r.Add((byte)(
                    (hexDigitDecode(hexString[n + 0]) << 4) |
                    (hexDigitDecode(hexString[n + 1]) << 0)
                ));
            }
            return r.ToArray();
        }