【发布时间】:2018-06-07 21:11:05
【问题描述】:
假设我有 2 个无符号整数
第一个值为&H0D345B40
第二个值&H9AF34A32
如何生成一个无符号的 64 位整数,其值为
&H324AF39A405B340D
这是我尝试过的
dim crypt1 as uint32 = &H0D345B40
dim crypt2 as uint32 = &H9AF34A32
Dim output As UInt64 = (CType(CType(crypt1, UInt64), Long) Or (crypt2 << 32))
the output is &H000000009FF75B72
【问题讨论】:
-
昏暗输出 = &H9AF34A320D345B40UL
-
是的,但我需要结合 2 个变量,不能只用手
-
昏暗输出为 UInt64 = crypt2 * &h10000000 + crypt1
标签: vb.net type-conversion endianness unsigned