Hello everyone,
how to convert a data type packed in a string back to its original type?
For example
The first 8 bytes of a string contain a UInt32 number:
B90D 0000 0000 0000 [Binary]
How can I make 3513 [Dec] out of it?
Here's what I tried to do:
Dim mbc As MemoryBlock = StringRepresentationOfInteger Dim mb As New Xojo.Core.MutableMemoryBlock( mbc, mbc.Size ) Dim tmp As UInt32 tmp = mb.UInt32Value(0)
It works, but is that the best way?