官术网_书友最值得收藏!

24. String to binary conversion

Write a function that, given a string containing hexadecimal digits as the input argument, returns a vector of 8-bit integers that represent the numerical deserialization of the string content. The following are examples:

Input: "BAADF00D" or "baadF00D", output: {0xBA, 0xAD, 0xF0, 0x0D}
Input "010203040506", output: {1, 2, 3, 4, 5, 6}

主站蜘蛛池模板: 阳山县| 高安市| 财经| 朔州市| 图木舒克市| 桓台县| 永清县| 丰都县| 肇东市| 米脂县| 滦南县| 日照市| 图木舒克市| 古丈县| 嘉黎县| 景东| 金寨县| 娄底市| 洱源县| 吐鲁番市| 泰州市| 永定县| 都昌县| 新宁县| 庄浪县| 淄博市| 蒲江县| 扶风县| 柞水县| 普定县| 万州区| 德庆县| 响水县| 阿拉善左旗| 泰来县| 宣武区| 杂多县| 陆丰市| 通化县| 台安县| 防城港市|