A RWTextOrBinaryStream instance can operate in binary or ascii mode, the
mode can be switched at any time by sending /ascii/ or /binary/, and
some methods are mode-sensitive, e.g., /contents/ will respond with a
ByteArray in binary mode and a ByteString in ascii mode. (OSC uses ASCII
encoding for addresses and strings, and binary formats for numbers and
blobs.)
The OSC testcases and the parser rely on this behavior.
On 5/21/21 3:00 PM, Sven Van Caekenberghe wrote:
On 21 May 2021, at 14:02, Günter Khyo via Pharo-dev <[email protected]>
wrote:
Hi,
I have ported the Open Sound Control package to Pharo 9.0. Since the Catalog
Browser is marked as legacy, I was wondering how to submit the patch. Is there
a git repository? I attached the fileout to this email in case anybody wants to
take a look at the package or knows how/where to add it to Pharo 9.0,
Patch Note:
OSC relies on the removed RWTextOrBinaryStream class which has very specific
behavior that I could not emulate using the available stream and codec classes,
so I pulled in the class from Squeak 5, renamed it to OSCStream and added it to
the OSC package. This seemed to be the easiest way to do it without changing
the OSC implementation, but I welcome any suggestions for a cleaner solution.
I am curious, what was the specific behaviour that you could not emulate ?
Günter
<OSC.st>