[Glass] Allocating a long for a C function

bruno buzzi brassesco smalltalk at adinet.com.uy
Thu Aug 6 05:34:58 PDT 2020


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




More information about the Glass mailing list