WAP_WSP的Well-known header

帖子提问的Well-known header   http://bbs.csdn.net/topics/310019042#new_post

定义编码方案与实际传输最高有效位不一样。详细基本语法

8.4.2.1  Basic rules的Short-integer

Short-integer = OCTET
; Integers in range 0-127 shall be encoded as a one octet value with the most significant bit set
; to one (1xxx xxxx) and with the value in the remaining least significant bits.

解释部分,最高有效位要置为1.而xxxxxxx才是编码方案的值


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章