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

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}

主站蜘蛛池模板: 广宗县| 赤峰市| 莱阳市| 湖口县| 云和县| 广灵县| 石柱| 临夏县| 新津县| 邹城市| 鸡西市| 黄龙县| 丹阳市| 蓬莱市| 察隅县| 许昌县| 靖远县| 旌德县| 马山县| 宜州市| 陇川县| 大丰市| 襄樊市| 六枝特区| 大同市| 栖霞市| 安福县| 丰都县| 库车县| 平陆县| 朝阳市| 灵寿县| 邢台市| 松潘县| 新巴尔虎左旗| 宕昌县| 遂宁市| 柳江县| 杭锦旗| 开平市| 讷河市|