/// <summary> /// Initialize a new instance. /// </summary> /// <param name="container">The corresponding event instance. /// <seealso cref="EntryBase"/> /// </param> /// <param name="offset">The first byte of the descriptor raw data in /// the related <see cref="Section"/>.</param> /// <param name="length">The number of bytes for this instance. Since this /// does not include the tag and the length <see cref="byte"/> <see cref="Length"/> /// will be two greater than the value of this parameter.</param> protected Descriptor(IDescriptorContainer container, int offset, int length) { // Set Tag = (DescriptorTags)container.Section[offset - 2]; // Remember Container = container; Length = 2 + length; }
/// <summary> /// /// </summary> /// <param name="tag"></param> protected Descriptor(DescriptorTags tag) { // Remember Tag = tag; }
/// <summary> /// Initialize a new instance. /// </summary> /// <param name="entry">The corresponding event instance. /// <seealso cref="Entry"/> /// </param> /// <param name="offset">The first byte of the descriptor raw data in /// the related <see cref="Section"/>.</param> /// <param name="length">The number of bytes for this instance. Since this /// does not include the tag and the length <see cref="byte"/> <see cref="Length"/> /// will be two greater than the value of this parameter.</param> protected Descriptor(IDescriptorContainer container, int offset, int length) { // Set Tag = (DescriptorTags)container.Section[offset - 2]; // Remember Container = container; Length = 2 + length; }