[squeak-dev] FFI | ByteArrays: Authentic or Fabricated? :-)

Marcel Taeumel marcel.taeumel at hpi.de
Wed May 20 16:53:37 UTC 2020


Hi, all!

How can I figure out, whether the handle of an external object -- if it is a byte array -- was fabricated in the image or whether it is actually something creating in the external library? For actual instances of ExternalAddress, it is obvious that those are meant to point to external memory. But what about instances of ByteArray being stored in the "handle" instVar?

I tried Object >> #isPinned. :-D Did not work. I am looking at all the primitives in ByteArray.

... is there actually a difference? Or are all byte arrays that I find in the image actually in the object memory?

Best,
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200520/e70d6099/attachment.html>


More information about the Squeak-dev mailing list