Allocating a long for a C function

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Allocating a long for a C function

GLASS mailing list
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