You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
Local ivar As Integer, fvar As Float, mem As Integer
Mem = CreateMemblock(256)
ivar = 23
fvar = *ivar //direct memcopy from address of ivar to fvar, 4 bytes (size of fvar)
Memcopy @fvar, GetMemblockPointer(Mem) + 32, SizeOf(fvar)
a As Integer
b As Integer
c As float
Global tvar As mytpe
Mem = CreateMemblock(1024)
Size = SizeOf(mytype)
Memcopy @tvar, GetMemblockPointer(Mem) + Size * 8, Size
Memcopy @tvar + 12, @fvar, 2
Login to post a reply