private void CompressHeader(KeyValuePair <string, string> header, IAdditionalHeaderInfo type) { byte prefix = 0; var headerType = (type as Indexation).Type; switch (headerType) { case IndexationType.WithoutIndexation: case IndexationType.Incremental: prefix = 5; break; case IndexationType.Substitution: prefix = 6; break; case IndexationType.Indexed: CompressIndexed(header); return; } CompressNonIndexed(header.Key, header.Value, headerType, prefix); }
private void CompressHeader(KeyValuePair<string, string> header, IAdditionalHeaderInfo type) { byte prefix = 0; var headerType = (type as Indexation).Type; switch (headerType) { case IndexationType.WithoutIndexation: case IndexationType.Incremental: prefix = 5; break; case IndexationType.Substitution: prefix = 6; break; case IndexationType.Indexed: CompressIndexed(header); return; } CompressNonIndexed(header.Key, header.Value, headerType, prefix); }