public override void Parse(byte[] buffer, int offset) { base.Parse(buffer, offset); Descriptions = new Collection <SourceDescriptionBlock>(); int index = 4; while (Descriptions.Count < ReportCount) { SourceDescriptionBlock descriptionBlock = new SourceDescriptionBlock(); descriptionBlock.Process(buffer, offset + index); Descriptions.Add(descriptionBlock); index += descriptionBlock.BlockLength; } }
public override void Parse(byte[] buffer, int offset) { base.Parse(buffer, offset); Descriptions = new Collection<SourceDescriptionBlock>(); int index = 4; while (Descriptions.Count < ReportCount) { SourceDescriptionBlock descriptionBlock = new SourceDescriptionBlock(); descriptionBlock.Process(buffer, offset + index); Descriptions.Add(descriptionBlock); index += descriptionBlock.BlockLength; } }