[英]How do I combine 2 32-bit Unsigned Integers to 64-bit integer
可以說我有2個無符號整數
首先值為&H0D345B40
值&H9AF34A32
第二
如何生成值為&H324AF39A405B340D
的無符號64位整數
這是我嘗試過的
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
解決了一個糟糕的方法,但無論如何都還不錯
dim output() as uint64
Dim bytes() As UInteger = {crypt1, crypt2}
Buffer.BlockCopy(bytes, 0, output, 0, 8)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.