Verify() public static method

Verify that a stream's current position contains a serialized PropValue.
public static Verify ( FastTransferStream stream ) : bool
stream FastTransferStream A FastTransferStream.
return bool
Example #1
0
        /// <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);
            }
        }
Example #2
0
 /// <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));
 }