public DateTime EndReadDateTime(IAsyncResult result) { uint value = EndReadUInt32(result); var timeStamp = new VhdTimeStamp(value); return(timeStamp.ToDateTime()); }
public void WriteTimeStamp(long offset, DateTime value) { this.SetPosition(offset); var timeStamp = new VhdTimeStamp(value); uint result = (uint)IPAddress.HostToNetworkOrder((int)timeStamp.TotalSeconds); this.writer.Write(result); }
public DateTime ReadDateTime() { var timeStamp = new VhdTimeStamp(this.ReadUInt32()); return(timeStamp.ToDateTime()); }
public DateTime ReadDateTime() { var timeStamp = new VhdTimeStamp(this.ReadUInt32()); return timeStamp.ToDateTime(); }
public DateTime EndReadDateTime(IAsyncResult result) { uint value = EndReadUInt32(result); var timeStamp = new VhdTimeStamp(value); return timeStamp.ToDateTime(); }
public DateTime ReadDateTime(long offset) { var timeStamp = new VhdTimeStamp(this.ReadUInt32(offset)); return timeStamp.ToDateTime(); }
public void WriteTimeStamp(long offset, DateTime value) { this.SetPosition(offset); var timeStamp = new VhdTimeStamp(value); uint result = (uint)IPAddress.HostToNetworkOrder((int)timeStamp.TotalSeconds); this.writer.Write(result); }