so then for situations like this would you do something along these lines?
No need for all the '?MacOS' stuff - just pick one and stick with it. All the '?' kludges are in the endianstream module: see mod/brl.mod/endianstream.mod/endianstream.bmx for the nitty gritty.