XDR for Squeak

Jason Johnson jason.johnson.081 at gmail.com
Fri Aug 24 05:41:03 UTC 2007


This is what the FFI package does, no?

On 8/24/07, Elod Kironsky <kironsky at grisoft.cz> wrote:
> Hi!
>
> I wonder if there is any package in Squeak that would en/de-code
> standard C types to a byte-array, as the RFC 1014 - XDR: eXtrenal Data
> Representation standard does. I'm currently working on a client program
> to Player/Stage and it would save me a lot of work, as the communication
> is done via TCP packages. I know ByteArray can do byte, short, long and
> even double, but is it XDR compatible? Also, is there an equivalent of
> the C function gettimeofday(), that would return me a double, or
> something, that I can put into a ByteArray with doubleAt:put:bigEndian:?
>
> Cheers,
>
> Elod
>
>



More information about the Squeak-dev mailing list