Example #1
0
 /// <summary>
 /// Reads the custom section with the given header.
 /// </summary>
 /// <param name="Header">The section header.</param>
 /// <returns>The parsed section.</returns>
 protected virtual Section ReadCustomSectionPayload(SectionHeader Header)
 {
     if (Header.Name.CustomName == NameSection.CustomName)
     {
         return(NameSection.ReadSectionPayload(Header, this));
     }
     else
     {
         return(new CustomSection(
                    Header.Name.CustomName,
                    ReadBytes((int)Header.PayloadLength)));
     }
 }