Complete.Org: Mailing Lists: Archives: freeciv-java: June 2003:
[FreeCiv-Java] UNSUBSCRIBE
Home

[FreeCiv-Java] UNSUBSCRIBE

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-java@xxxxxxxxxxx
Subject: [FreeCiv-Java] UNSUBSCRIBE
From: Leo <leomdqarg@xxxxxxxxxxxx>
Date: Tue, 3 Jun 2003 10:57:49 -0300
Reply-to: Leo <leomdqarg@xxxxxxxxxxxx>

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



[Prev in Thread] Current Thread [Next in Thread]