public static DateTime Demarshal(Stream stream)
        {
            long time = Int64Marshaler.Demarshal(stream);

            return(DateTime.FromFileTime(time));
        }
Beispiel #2
0
 public static IntPtr Demarshal(Stream stream)
 {
     return(new IntPtr(Int64Marshaler.Demarshal(stream)));
 }
        public static void Marshal(DateTime value, Stream stream)
        {
            long time = value.ToFileTime();

            Int64Marshaler.Marshal(time, stream);
        }
Beispiel #4
0
 public static void Marshal(IntPtr value, Stream stream)
 {
     Int64Marshaler.Marshal(value.ToInt64(), stream);
 }