Exemplo n.º 1
0
        /// <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;
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="tag"></param>
 protected Descriptor(DescriptorTags tag)
 {
     // Remember
     Tag = tag;
 }
Exemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="tag"></param>
 protected Descriptor(DescriptorTags tag)
 {
     // Remember
     Tag = tag;
 }
Exemplo n.º 4
0
        /// <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;
        }