Hi @BaDanWang-3245,
I was assuming you had implemented and that the results were correct but just wanted to make sure this description error was not, in your opinion, affecting the pseudocode or actual coding. I now agree that you are right. The description is not taking into account that the 2 byte header has been subtracted already.
The 3 bytes that it includes are the 2 byte header and then just 1 byte since the size was calculated with a difference in addresses which doesn't include the starting byte. So once you remove the size of the header for the chunk, then you still have to include the 1 byte increase to include the starting byte. So I now agree that that description needs to be changed as you mentioned to:
"The size of Data in bytes MUST be CompressedChunk.CompressedChunkHeader.CompressedChunkSize (section 2.4.1.1.4) plus 1."
I will file a bug to get the documentation updated.
Thank you for bringing this to our attention!
Best regards,
Tom Jebo
Microsoft Open Specifications Support