ポジローぽけっと

昨日より今日、今日より明日を信じて、トライトライ

第三十九回スパルタンプログラミング

週末出張は帰りバス時刻の直前にVersion up対応の不具合発覚で復旧対応。

バスを一本遅らし対応して帰ったら、21:00。よって、いっしー宅へ移動は土曜。

土曜のお昼は香蘭楼、豚角煮飯定食800円、うまーい!

やりたいこと

  • HPACKのC.4のデコードのテストを実装したい。
    • そのためにDecode関数のIFを整えたい

やったこと

  • IF整えるにあたって型を見ているとHPACKのEOSが分かっていないことがわかった
  • dynamic tableの管理部分とHPACKのC.5のデコードテストの実装が6/14に完了

HPACKのEOS

As the Huffman-encoded data doesn't always end at an octet boundary, some padding is inserted after it, up to the next octet boundary. To prevent this padding from being misinterpreted as part of the string literal, the most significant bits of the code corresponding to the EOS (end-of-string) symbol are used.

MSBとは

Upon decoding, an incomplete code at the end of the encoded data is to be considered as padding and discarded. A padding strictly longer than 7 bits MUST be treated as a decoding error. A padding not corresponding to the most significant bits of the code for the EOS symbol MUST be treated as a decoding error. A Huffman-encoded string literal containing the EOS symbol MUST be treated as a decoding error.