Example #1
0
 public static void addDouble(this ByteStream stream, double v)
 {
     var union = new EightByteUnion();
     union.Double = v;
     byte[] bytes = union.Bytes;
     stream.Write(bytes, 0, bytes.Length);
 }
Example #2
0
 public static double getDouble(this ByteStream stream)
 {
     var union = new EightByteUnion();
     union.Bytes = stream.getByteArray(8);
     return union.Double;
 }
Example #3
0
 public static DateTime getDateTime(this ByteStream stream)
 {
     var union = new EightByteUnion();
     union.Bytes = stream.getByteArray(8);
     return union.DateTime;
 }