Example #1
0
        public void SetLastAccessed(long lastAccessed)
        {
            LittleEndian.SetInt16(data, 0x12,
                                  DosUtils.EncodeDate(lastAccessed));

            dirty = true;
        }
Example #2
0
        public void SetLastModified(long lastModified)
        {
            LittleEndian.SetInt16(data, 0x16,
                                  DosUtils.EncodeTime(lastModified));
            LittleEndian.SetInt16(data, 0x18,
                                  DosUtils.EncodeDate(lastModified));

            dirty = true;
        }
Example #3
0
        public void SetCreated(long created)
        {
            LittleEndian.SetInt16(data, 0x0e,
                                  DosUtils.EncodeTime(created));
            LittleEndian.SetInt16(data, 0x10,
                                  DosUtils.EncodeDate(created));

            dirty = true;
        }
Example #4
0
 public long GetLastAccessed()
 {
     return(DosUtils.DecodeDateTime(
                LittleEndian.GetUInt16(data, 0x12),
                0)); /* time is not recorded */
 }
Example #5
0
 public long GetLastModified()
 {
     return(DosUtils.DecodeDateTime(
                LittleEndian.GetUInt16(data, 0x18),
                LittleEndian.GetUInt16(data, 0x16)));
 }
Example #6
0
 public long GetCreated()
 {
     return(DosUtils.DecodeDateTime(LittleEndian.GetUInt16(data, 0x10), LittleEndian.GetUInt16(data, 0x0E)));
 }