[Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions
Benoît Minisini
gambas at ...1...
Fri Apr 8 22:49:27 CEST 2011
> Kevin Fishburne wrote:
>
> Ahh, I understand a little better. I don't know much about endianness,
> so please excuse my ignorance here.
>
> ...
>
> While it would be slow, I could just write functions for flipping the
> byte order of characters in a string. That would work fine for the
> client but may impact performance server side. I'll do some
> experimenting tomorrow to see what I can come up with.
>
Wikipedia is your friend, Kevin.
http://en.wikipedia.org/wiki/Endianness
And UTF-8 strings used by Gambas are not endianness-dependent.
Anyway, I'm almost sure that you can decode messages with READ while you
receive them, and store the decoded data in an array, or a collection (the
data is then indexed by name, easier but slower), and then process them later
as you wanted.
Regards,
--
Benoît Minisini
More information about the User
mailing list