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);
 }
 public static double getDouble(this ByteStream stream)
 {
     var union = new EightByteUnion();
     union.Bytes = stream.getByteArray(8);
     return union.Double;
 }
 public static DateTime getDateTime(this ByteStream stream)
 {
     var union = new EightByteUnion();
     union.Bytes = stream.getByteArray(8);
     return union.DateTime;
 }
 public static DateTime getDateTime(this ByteStream stream) {
     var union = new EightByteUnion();
     union.Bytes = stream.getByteArray(8);
     return union.DateTime;
 }
 public static void addDateTime(this ByteStream stream, DateTime v) {
     var union = new EightByteUnion();
     union.DateTime = v;
     byte[] bytes = union.Bytes;
     stream.Write(bytes, 0, bytes.Length);
 }
 public static double getDouble(this ByteStream stream) {
     var union = new EightByteUnion();
     union.Bytes = stream.getByteArray(8);
     return union.Double;
 }