/// <summary> /// Parse the SizeRestriction structure. /// </summary> /// <param name="s">A stream containing the SizeRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); this.RelOp = (RelOpType)ReadByte(); this.PropTag = ReadUint(); this.Size = ReadUint(); }
/// <summary> /// Parse the SubObjectRestriction structure. /// </summary> /// <param name="s">A stream containing the SubObjectRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); this.Subobject = ReadUint(); this.Restriction = new RestrictionType(); this.Restriction.Parse(s); }
/// <summary> /// Parse the PropertyRestriction structure. /// </summary> /// <param name="s">A stream containing the PropertyRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); this.RelOp = (RelOpType)ReadByte(); this.PropTag = ReadUint(); this.TaggedValue = new TaggedPropertyValue(); this.TaggedValue.Parse(s); }
/// <summary> /// Parse the OrRestriction structure. /// </summary> /// <param name="s">A stream containing the OrRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); if (countWide == CountWideEnum.twoBytes) { this.RestrictCount = ReadUshort(); } else { this.RestrictCount = ReadUint(); } List<RestrictionType> tempRestricts = new List<RestrictionType>(); for (int length = 0; length < (int)RestrictCount; length++) { RestrictionType tempRestriction = new RestrictionType(); tempRestriction.Parse(s); tempRestricts.Add(tempRestriction); } this.Restricts = tempRestricts.ToArray(); }
/// <summary> /// Parse the ContentRestriction structure. /// </summary> /// <param name="s">A stream containing the ContentRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); this.FuzzyLevelLow = (FuzzyLevelLowEnum)ReadUshort(); this.FuzzyLevelHigh = (FuzzyLevelHighEnum)ReadUshort(); this.PropertyTag = new PropertyTag(); this.PropertyTag.Parse(s); this.TaggedValue = new TaggedPropertyValue(); this.TaggedValue.Parse(s); }
/// <summary> /// Parse the CommentRestriction structure. /// </summary> /// <param name="s">A stream containing the CommentRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); this.TaggedValuesCount = ReadByte(); List<TaggedPropertyValue> tempTaggedValue = new List<TaggedPropertyValue>(); for (int i = 0; i < this.TaggedValuesCount; i++) { TaggedPropertyValue tempproperty = new TaggedPropertyValue(); tempproperty.Parse(s); tempTaggedValue.Add(tempproperty); } this.TaggedValues = tempTaggedValue.ToArray(); this.RestrictionPresent = ReadBoolean(); if (this.RestrictionPresent == true) { this.Restriction = new RestrictionType(); this.Restriction.Parse(s); } }
/// <summary> /// Parse the BitMaskRestriction structure. /// </summary> /// <param name="s">A stream containing the BitMaskRestriction structure</param> public override void Parse(Stream s) { base.Parse(s); this.RestrictType = (RestrictTypeEnum)ReadByte(); this.BitmapRelOp = (BitmapRelOpType)ReadByte(); this.PropTag = new PtypInteger32(); this.PropTag.Parse(s); this.Mask = ReadUint(); }