test_class.file: routing-api/src/test/java/eco/data/m3/routing/api/utils/CHexConvertTest.java
test_class.identifier: CHexConvertTest
test_class.superclass: extends TestCase
test_case.body: @Test
      public void testCHextConvert(){
          byte[] output = CHexConvert.hexStr2Bytes("3132333435363738393031323334353637383931");
          byte[] expect = {49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 49};
  
          assertEquals(expect.length, output.length);
          for(int i=0; i<expect.length; i++)
              assertEquals(expect[i], output[i]);
      }
test_case.class_method_signature: CHexConvertTest.testCHextConvert()
test_case.full_signature: @Test public void testCHextConvert()
test_case.identifier: testCHextConvert
test_case.invocations: hexStr2Bytes assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCHextConvert()
focal_class.file: routing-api/src/main/java/eco/data/m3/routing/api/utils/CHexConvert.java
focal_class.identifier: CHexConvert
focal_class.class_method_signature: CHexConvert.hexStr2Bytes(String src)
focal_class.full_signature: public static byte[] hexStr2Bytes(String src)
focal_class.identifier: hexStr2Bytes
focal_class.modifiers: public static
focal_class.parameters: (String src)
focal_class.return: byte[]
focal_class.signature: byte[] hexStr2Bytes(String src)
focal_method.body: public static byte[] hexStr2Bytes(String src){  
          src = src.trim().replace(" ", "").toUpperCase(Locale.US);  
   
          int m=0,n=0;  
          int iLen=src.length()/2;  
          byte[] ret = new byte[iLen];  
            
          for (int i = 0; i < iLen; i++){  
              m=i*2+1;  
              n=m+1;  
              ret[i] = (byte)(Integer.decode("0x"+ src.substring(i*2, m) + src.substring(m,n)) & 0xFF);  
          }  
          return ret;  
      }
focal_method.class_method_signature: CHexConvert.hexStr2Bytes(String src)
focal_method.full_signature: public static byte[] hexStr2Bytes(String src)
focal_method.identifier: hexStr2Bytes
focal_method.invocations: toUpperCase replace trim length decode substring substring
focal_method.modifiers: public static
focal_method.parameters: (String src)
focal_method.return: byte[]
focal_method.signature: byte[] hexStr2Bytes(String src)