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