1 using System;
2
3 namespace System.Net.Http
4 {
5 public uchar ParseHex(uchar c1, uchar c2)
6 {
7 string s1(cast<char>(c1));
8 byte b0 = ParseHexByte(s1);
9 string s2(cast<char>(c1));
10 byte b1 = ParseHexByte(s2);
11 return cast<uchar>(16u * cast<uint>(b0) + cast<uint>(b1));
12 }
13 }