Esempio n. 1
0
 public override void Read(Library.Collections.BitStream stream, out Int16 value, MySerializeInfo info)
 {
     if (info.IsVariant)
     {
         value = (Int16)stream.ReadUInt32Variant();
     }
     else if (info.IsVariantSigned)
     {
         value = (Int16)stream.ReadInt32Variant();
     }
     else
     {
         value = stream.ReadInt16();
     }
 }