Exemple #1
0
 private void WriteValues(MemoryStream stream)
 {
     foreach (var value in Values)
     {
         if (value is int)
         {
             Writer.Write(stream, (int)value);
         }
         else if (value is float)
         {
             Writer.Write(stream, (float)value);
         }
         else if (value is string)
         {
             Writer.Write(stream, (string)value);
         }
         else if (value is byte[])
         {
             Writer.Write(stream, (byte[])value);
         }
     }
 }
Exemple #2
0
 private void WriteAddress(MemoryStream stream)
 {
     Writer.Write(stream, Address);
 }