Decode "TF" system area.

This commit is contained in:
2019-07-28 18:32:15 +01:00
parent 0271ea582e
commit 24920776ed
4 changed files with 86 additions and 0 deletions

View File

@@ -1,9 +1,20 @@
using System;
using DiscImageChef.Helpers;
namespace DiscImageChef.Filesystems.ISO9660
{
public partial class ISO9660
{
DateTime? DecodeIsoDateTime(byte[] timestamp)
{
switch(timestamp?.Length)
{
case 7: return DecodeIsoDateTime(Marshal.ByteArrayToStructureLittleEndian<IsoTimestamp>(timestamp));
case 17: return DateHandlers.Iso9660ToDateTime(timestamp);
default: return null;
}
}
DateTime? DecodeIsoDateTime(IsoTimestamp timestamp)
{
try