Пример #1
0
 public DateTime ReadDateTime()
 {
     var timeStamp = new VhdTimeStamp(this.ReadUInt32());
     return timeStamp.ToDateTime();
 }
Пример #2
0
 public DateTime ReadDateTime(long offset)
 {
     var timeStamp = new VhdTimeStamp(this.ReadUInt32(offset));
     return timeStamp.ToDateTime();
 }
Пример #3
0
 public DateTime EndReadDateTime(IAsyncResult result)
 {
     uint value = EndReadUInt32(result);
     var timeStamp = new VhdTimeStamp(value);
     return timeStamp.ToDateTime();
 }
Пример #4
0
 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);
 }