[FreeCiv-Java] UNSUBSCRIBE
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello Artur,
Monday, June 2, 2003, 4:19:04 AM, you wrote:
AB> David Chen wrote:
>> I am builiding a java client for freeciv 1.14.0 (I gave up on trying
>> to keeping up to date with the latest development and went for a stable
>> version) My question is about ./common/dataio.dio_get_uint32. Does
>> freeciv actually use unsigned 4 byte ints? More broadly, is it safe to
>> assume that I can use java int (signed, 4 bytes) to read in all the ints
>> from all types of packets?
AB> As long, as data is a bitfield, it is not important if you use signed or
AB> unsigned types. It only becomes important, if it is a scalar - but then,
AB> you still can read it like this from the net, and only cast to long when
AB> comparing versus other integers. I don't think that freeciv uses full
AB> resolution of long in scalar manner anywhere - only bitfields.
AB> Artur
--
Best regards,
Leo mailto:leomdqarg@xxxxxxxxxxxx
|
|