Ejemplo n.º 1
0
 public override void Write(Library.Collections.BitStream stream, ref Int16 value, MySerializeInfo info)
 {
     if (info.IsVariant)
     {
         stream.WriteVariant((UInt16)value);
     }
     else if (info.IsVariantSigned)
     {
         stream.WriteVariantSigned(value);
     }
     else
     {
         stream.WriteInt16(value);
     }
 }