Bug in ExternalStructure>>bytesAtOffset:put: ?

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

Bug in ExternalStructure>>bytesAtOffset:put: ?

Chris Uppal-3
It looks to me as if ExternalStructure>>bytesAtOffset:put: is buggy.

It sends #size to the source of the byte data (anExternalStructureOfByteOffset)
rather than #size, which means that sources that don't count their size in
bytes (e.g. UnicodeStrings, ExternalArrays) will malfunction.

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: Bug in ExternalStructure>>bytesAtOffset:put: ?

Schwab,Wilhelm K
Chris,

> It looks to me as if ExternalStructure>>bytesAtOffset:put: is buggy.
>
> It sends #size to the source of the byte data (anExternalStructureOfByteOffset)
> rather than #size, which means that sources that don't count their size in
> bytes (e.g. UnicodeStrings, ExternalArrays) will malfunction.

If you are feeling particularly motivated, take a look at the
stream/external array questions I posted a while back.  This might be
related, or might suggest another solution to the problem.

Have a good one,

Bill


--
Wilhelm K. Schwab, Ph.D.
[hidden email]