[Glass] What is this chunk of memory prefixing my bytearray?

Mariano Martinez Peck marianopeck at gmail.com
Tue Nov 19 18:44:05 PST 2013


Hi guys,

I found something weird today. If you inspect this:

 ( ServerFileDirectory on: '/dev/random') directoryEntry readStreamDo: [ :s
|
s binary.
(s next: 20) asByteArray ]
You get something like:

 Ý5öyoÓT¾àiwð¯p óž“è( 221, 53, 246, 121, 111, 211, 84, 190, 224, 105, 119,
240, 175, 112, 133, 17, 243, 158, 147, 232)

If you inspect it, the ByteArray is correctly size 20, and each element
seems correct. But what are those weird characters I see in the
inspector/print?

-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131120/f4262c06/attachment.html>


More information about the Glass mailing list