public static DateTime Demarshal(Stream stream) { long time = Int64Marshaler.Demarshal(stream); return(DateTime.FromFileTime(time)); }
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); }
public static void Marshal(IntPtr value, Stream stream) { Int64Marshaler.Marshal(value.ToInt64(), stream); }