On Thu, Jan 29, 2015 at 12:28 PM, Rajith Muditha Attapattu < rajit...@gmail.com> wrote:
> Rafi could u pls answer the two questions I had in the code? > > 1. Your uint method only takes an int .. shouldn't it take a long? Bcos it > could contain a value larger than a java int? > To be honest I don't quite remember for sure, but I think it will do the two's complement and put it on the wire as a proper unsigned value. In other words I think it's just using the int type as a convenient/efficient way to pass around 4 bytes. > > 2. What should I use for boolean? there is no getBoolean .. or an > equivalent method > I think you might need to add this. I probably just omitted it. --Rafael