ReadUInt16() публичный Метод

Read a unsigned short integer value from stream,and advance the position within the stream by 2
public ReadUInt16 ( ) : ushort
Результат ushort
 /// <summary>
 /// Parse from a stream.
 /// </summary>
 /// <param name="stream">A stream contains CN.</param>
 public void Parse(FastTransferStream stream)
 {
     this.replicaId = stream.ReadUInt16();
     this.globalCounter = BitConverter.ToUInt64(stream.ReadBlock(6), 0);
 }
        /// <summary>
        /// Parse next object from a FastTransferStream.
        /// </summary>
        /// <param name="stream">A FastTransferStream.</param>
        public override void Parse(FastTransferStream stream)
        {
            base.Parse(stream);
            this.PropID = stream.ReadUInt16();

            if (this.PropID >= 0x8000)
            {
                this.NamedPropInfo = NamedPropInfo.ParseFrom(stream) as NamedPropInfo;
            }
        }
 /// <summary>
 /// Parse next object from a FastTransferStream.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 public override void Parse(FastTransferStream stream)
 {
     base.Parse(stream);
     this.PropType = stream.ReadUInt16();
     PropInfo = PropInfo.ParseFrom(stream) as PropInfo;
 }
 /// <summary>
 /// Parse the PropertyTagWithGroupPropertyName structure.
 /// </summary>
 /// <param name="s">A stream containing the PropertyTagWithGroupPropertyName structure</param>
 public void Parse(FastTransferStream stream)
 {
     this.PropertyType = (PropertyDataType)stream.ReadUInt16();
     this.PropertyId = stream.ReadUInt16();
     if (this.PropertyId >= 0x8000)
     {
         this.groupPropertyName = new GroupPropertyName();
         this.groupPropertyName.Parse(stream);
     }
 }
 /// <summary>
 /// Parse from a stream.
 /// </summary>
 /// <param name="stream">A stream contains ProgressInformation.</param>
 public void Parse(FastTransferStream stream)
 {
     this.Version = stream.ReadUInt16();
     this.Padding1 = stream.ReadUInt16();
     this.FAIMessageCount = stream.ReadUInt32();
     this.FAIMessageTotalSize = stream.ReadUInt64();
     this.NormalMessageCount = stream.ReadUInt32();
     this.Padding2 = stream.ReadUInt32();
     this.NormalMessageTotalSize = stream.ReadUInt64();
 }
 /// <summary>
 /// Parse MetaPropValue from a FastTransferStream.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 public override void Parse(FastTransferStream stream)
 {
     this.PropType = stream.ReadUInt16();
     this.PropID = stream.ReadUInt16();
     if (PropID != 0x4011 && PropID != 0x4008)
     {
         this.PropValue = stream.ReadUInt32();
     }
     else
     {
         if (PropID != 0x4011)
         {
             FolderReplicaInfo FolderReplicaInfo = new FolderReplicaInfo();
             FolderReplicaInfo.Parse(stream);
             this.PropValue = FolderReplicaInfo;
         }
         else
         {
             PtypString8 pstring8 = new PtypString8();
             pstring8.Parse(stream);
             this.PropValue = pstring8;
         }
     }
 }
 /// <summary>
 /// Parse the ROP response buffer.
 /// </summary>
 /// <param name="ropBytes">ROPs bytes in response.</param>
 /// <param name="startIndex">The start index of this ROP.</param>
 /// <returns>The size of response buffer structure.</returns>
 public override void Parse(FastTransferStream stream)
 {
     this.DatabaseGuid = stream.ReadGuid();
     this.GlobalCounter = BitConverter.ToUInt64(stream.ReadBlock(6), 0);
     this.pad = stream.ReadUInt16();
 }
 /// <summary>
 /// Parse from a stream.
 /// </summary>
 /// <param name="stream">A stream contains IDSET_REPLID.</param>
 public void Parse(FastTransferStream stream)
 {
     this.REPLID = stream.ReadUInt16();
     this.GLOBSET = new GLOBSET();
     this.GLOBSET.Parse(stream);
 }