private LanguageItem(Section section, int offset) { // Load the string ISOLanguage = section.ReadString(offset, 3); // Load the effect Effect = (AudioTypes)section[offset + 3]; }
/// <summary> /// Erstellt eine neue Sprache. /// </summary> /// <param name="section">Die Rohdaten.</param> /// <param name="offset">Das erste Byte der Beschreibung in den Rohdaten.</param> private LanguageItem(Section section, int offset) { // Load the string ISOLanguage = section.ReadString(offset, 3); // Load the effect Effect = (AudioTypes)section[offset + 3]; }
private TeletextItem(Section section, int offset) { // Load ISOLanguage = section.ReadString(offset + 0, 3); Type = (TeletextTypes)(section[offset + 3]>>3); MagazineNumber = (byte)(section[offset + 3]&0x7); // Decode PageNumberBCD = section[offset + 4]; }
/// <summary> /// Erzeugt eine neue Informationsinstanz. /// </summary> /// <param name="section">Die SI Tabelle, in der die Informationen abgelegt sind.</param> /// <param name="offset">Das erste Byte, das Informationen zu Untertiteln enthält.</param> private SubtitleInfo(Section section, int offset) { // Load the language ISOLanguage = section.ReadString(offset, 3); // Load the type Type = (SubtitleTypes)section[offset + 3]; // Load pages CompositionPage = Tools.MergeBytesToWord(section[offset + 5], section[offset + 4]); AncillaryPage = Tools.MergeBytesToWord(section[offset + 7], section[offset + 6]); }
/// <summary> /// Erzeugt eine neue Informationsinstanz. /// </summary> /// <param name="section">Die SI Tabelle, in der die Informationen abgelegt sind.</param> /// <param name="offset">Das erste Byte, das Informationen zu Untertiteln enthält.</param> private SubtitleInfo( Section section, int offset ) { // Load the language ISOLanguage = section.ReadString( offset, 3 ); // Load the type Type = (SubtitleTypes) section[offset + 3]; // Load pages CompositionPage = Tools.MergeBytesToWord( section[offset + 5], section[offset + 4] ); AncillaryPage = Tools.MergeBytesToWord( section[offset + 7], section[offset + 6] ); }