W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2014

Re: HPACK, Draft 09, Integer Representation

From: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Date: Fri, 29 Aug 2014 21:59:41 +0300
To: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
Cc: Pavel Rappo <pavel.rappo@gmail.com>, Mark Nottingham <mnot@mnot.net>, Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Message-ID: <20140829185941.GA18113@LK-Perkele-VII>
On Fri, Aug 29, 2014 at 04:51:16PM +0000, RUELLAN Herve wrote:
> I made some more modifications to 6.1, to describe how variable
> length integer works, but I think this could be further improved.
> I'll try to add some drawings to this.

The prose seems to be missing the substraction of (2^N-1) if value
is at least that large.

That is, the second byte would contain the low 7 bits of the raw
value ("the value"), not low 7 bits of value - (2^N-1).

This would give xF 81 02 for 257@4b, whereas pseudocode gives
xF F2 01.


I presume the pseudocode is correct and 2^N-1 should be substracted.


-Ilari
Received on Friday, 29 August 2014 19:00:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:37 UTC