/// <summary> /// Deserialize fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Deserialize(FastTransferStream stream) { this.propValues = new List <PropValue>(); while (PropValue.Verify(stream) && !MarkersHelper.IsEndMarkerExceptEcWarning(stream.VerifyUInt32())) { this.propValues.Add(PropValue.DeserializeFrom(stream) as PropValue); } if (SyntacticalBase.AllPropList != null) { SyntacticalBase.AllPropList.Add(this); } }
/// <summary> /// Verify that a stream's current position contains a serialized MvPropTypePropValue. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>I the stream's current position contains /// a serialized MvPropTypePropValue, return true, else false</returns> public static new bool Verify(FastTransferStream stream) { ushort tmp = stream.VerifyUInt16(); return(LexicalTypeHelper.IsMVType((PropertyDataType)tmp) && !PropValue.IsPidTagIdsetGiven(stream)); }
/// <summary> /// Verify that a stream's current position contains a serialized propList. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized propList, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return(PropValue.Verify(stream)); }