📜  dart 字符串转十六进制 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.384000             🧑  作者: Mango

代码示例1
int.parse(specificStringsYouWantToParse, radix: sizeOfRadix); // Use this

//Implementation
void main() {
  final fullString = fullStringYouWantToParseFrom;

  for (int i = 0; i <= fullString.length - 8; i += 8) {
    final hex = fullString.substring(i, i + 8);

    final number = int.parse(hex, radix: sizeOfRadix);
    print(number);
  }