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

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}

主站蜘蛛池模板: 喀喇沁旗| 舞阳县| 黄大仙区| 河源市| 隆化县| 青阳县| 花莲县| 汶上县| 阿拉尔市| 乐山市| 迁西县| 务川| 平顺县| 资中县| 乐清市| 当雄县| 阿坝县| 华安县| 克拉玛依市| SHOW| 巫溪县| 酒泉市| 玉屏| 思南县| 琼海市| 永登县| 东乡| 乌鲁木齐市| 中牟县| 铅山县| 苍梧县| 盐津县| 鸡东县| 长阳| 恩平市| 搜索| 太康县| 太和县| 临海市| 河津市| 家居|