Allocating a long for a C function
Posted by
GLASS mailing list on
Aug 06, 2020; 12:34pm
URL: https://forum.world.st/Allocating-a-long-for-a-C-function-tp5120399.html
Hi,
Just to check if this is correct. If i want to create a pointer to a
long value it will be:
| byteArray |
byteArray := CByteArray gcMalloc: 8.
byteArray int64At: 0 put: longValue.
^CPointer newFrom: byteArray
_______________________________________________
Glass mailing list
[hidden email]
https://lists.gemtalksystems.com/mailman/listinfo/glass