W3C home > Mailing lists > Public > public-exi@w3.org > April 2008

Re: [EXI] Encoding Basic types

From: Stanley A. Klein <sklein@cpcug.org>
Date: Mon, 21 Apr 2008 09:43:52 -0400 (EDT)
Message-ID: <55721.207.188.248.157.1208785432.squirrel@www.cpcug.org>
To: "Ed Day" <edday2006@gmail.com>
Cc: santhana@huawei.com, public-exi@w3.org

An unsigned integer can not be negative.

Stan Klein


On Mon, April 21, 2008 8:52 am, Ed Day wrote:
>
> Hi Santhanakrishnan,
>
> On Mon, Apr 21, 2008 at 8:02 AM, santhanakrishnan <santhana@huawei.com>
> wrote:
>>
>>
>>
>>
>> Hi
>>
>>            While encoding N bit unsigned integer if the range of the
>> bounded integer is greater than 4095 then the spec states that the input
>> should be encoded as Integer. I feel it should be encoded as Unsigned
>> Integer in this case as the original input itself is an N bit Unsigned
>> Integer.
>
> It is possible the number may be negative.  If the range value was
> something like -10,000 to 0, the value would be negative after
> discarding the constraint.
>
>>
>>
>>
>>            Also If we encode a bounded integer as N bit unsigned
>> integer
>> then how the decoder will know the starting value of range while
>> decoding.
>> The range start value is not part of the encoding. Should the range
>> start
>> information be made available in the grammar generated from the schema ?
>
> Yes.
>
>>
>>
>>
>> Please clarify the above.
>>
>>
>>
>> Regards
>>
>> Santhanakrishnan
>
>
>
> --
> Ed Day
> Objective Systems, Inc.
> http://www.obj-sys.com
>


-- 
Received on Monday, 21 April 2008 13:44:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 October 2008 18:12:36 GMT