Export (0) Print
Expand All

2.1.1 Xpress Compression

To compress an input stream of bytes using Xpress Compression, the server MUST first segment the input stream into a sequence of blocks. The original, uncompressed size of each block MUST NOT be greater than 65535 bytes.<5>

Each block MUST then be compressed and encoded using the CompressOrDecompressWin2k3 procedure, as specified in section 2.1.1.1. The compressed size of each block MUST NOT be greater than 65535 bytes. The compressed blocks MUST be output in sequence, each prefixed with a header.

The header MUST be in the following format.

original

compressed

original: A signed, 32-bit integer indicating the original, uncompressed size, in bytes, of the block that follows. The encoding MUST be little-endian.

compressed: A signed, 32-bit integer indicating the compressed size, in bytes, of the block that follows. The encoding MUST be little-endian.

 
Show:
© 2014 Microsoft