4.1.1.1 Example 1

The following example shows a network dump of an image compressed using ClearCodec. The width of the bitmap is 8, and the height is 9. ClearCodec returned 4 bytes after compressing this image.

 COMPRESSED BITMAP DATA (4 bytes):
 00000000  03 c3 11 00
  
 03 -> CLEARCODEC_BITMAP_STREAM::flags = 0x03 
 = 0x01 | 0x02
 = CLEARCODEC_FLAG_GLYPH_INDEX (0x01) | CLEARCODEC_FLAG_GLYPH_HIT (0x02)
  
 c3 -> CLEARCODEC_BITMAP_STREAM::seqNumber = 195
 11 00 -> CLEARCODEC_BITMAP_STREAM::glyphIndex = 17

The sequence number is validated and incremented. The pixels for this image can be found in the Decompressor Glyph Storage (section 3.3.1.9) ADM element at position 17, ordered from left to right and then top to bottom.