HI
,
I read a file using BigEndian, and I put it in array named DWORD:
DWORD() As UInt32
Is perfect to me use bigEndian with my many methods.
But I have a problem if I need to convert a value to Int.
Infact I canāt use:
Var qtaSections As UInteger = DWORD(5) because the Integer value is not convert correctly.
So, I ācopied / modifiedā with this code:
Var mb As New MemoryBlock(4)
mb.LittleEndian = False
mb.UInt32Value(0) = DWORD(5) 'Here, in DWORD(5), an integer value: &h04000000
mb.LittleEndian = True
Var qtaSections As UInteger = mb.UInt32Value(0) 'Now in qtaSections I have a realy 4 number
Is working, butā¦
ā¦is there a fastly method to convert the DWORD(5) BigEndian to Integer without use memory block for switch to LittleEndian ?