public static IEnumerable <SubrecordPinFrame> Masters(this ModHeaderFrame modHeader) { foreach (var pin in EnumerateSubrecords(modHeader)) { if (pin.RecordType == RecordTypes.MAST) { yield return(pin); } } }
/// <summary> /// Enumerates locations of the contained subrecords.<br/> /// Locations are relative to the RecordType of the ModHeaderFrame. /// </summary> public static IEnumerable <SubrecordPinFrame> EnumerateSubrecords(this ModHeaderFrame modHeader) { return(EnumerateSubrecords(modHeader.HeaderAndContentData, modHeader.Meta, modHeader.HeaderLength, _headerOverflow)); }