byte vector example

Imported from previous forum

Hi,

In the fisrt example form appendix 3.1.4-“Fast Specification 1.x.1”, why isn’t the length of the input value “ABC” incremented by 1?
The length is of type uInt32, and since the byteVector is optional the length value is optional too. So, according to Transfer Encoding(10.6.1) an optional uInt32 must allways be incremented by 1.
Please correct me where i’m wrong.

InputValue Length
Null 0x10000000
ABC 0x10000011 -> isn’t 0x10000100 the correct value?
zero length value 0x10000001

Regards,
Schneider Stefan

Hi Stefan,

appendix section 3.1.4 is incorrect
the length should be nullable if the presence is optional:

'10000100’b is as you suggest the correct value for length=3.

('10000000’b=NULL '10000001’b=0 '10000010’b=1 '10000011’b=2)

Best,
Rolf

Hi,

In the fisrt example form appendix 3.1.4-“Fast Specification 1.x.1”,
why isn’t the length of the input value “ABC” incremented by 1? The
length is of type uInt32, and since the byteVector is optional the
length value is optional too. So, according to Transfer
Encoding(10.6.1) an optional uInt32 must allways be incremented by 1.
Please correct me where i’m wrong.

InputValue Length Null 0x10000000 ABC 0x10000011 → isn’t 0x10000100 the
correct value? zero length value 0x10000001

Regards, Schneider Stefan

Thank you, Rolf!

Hi Stefan,

appendix section 3.1.4 is incorrect the length should be nullable if the
presence is optional:

'10000100’b is as you suggest the correct value for length=3.

('10000000’b=NULL '10000001’b=0 '10000010’b=1 '10000011’b=2)

Best, Rolf

Hi,

In the fisrt example form appendix 3.1.4-“Fast Specification 1.x.1”,
why isn’t the length of the input value “ABC” incremented by 1? The
length is of type uInt32, and since the byteVector is optional the
length value is optional too. So, according to Transfer
Encoding(10.6.1) an optional uInt32 must allways be incremented by 1.
Please correct me where i’m wrong.

InputValue Length Null 0x10000000 ABC 0x10000011 → isn’t 0x10000100
the correct value? zero length value 0x10000001

Regards, Schneider Stefan