mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
First commit to SVN
git-svn-id: svn://claunia.com/FileSystemIDandChk@1 17725271-3d32-4980-a8cb-9ff532f270ba
This commit is contained in:
28
FileSystemIDandChk/PartPlugins/PartPlugin.cs
Normal file
28
FileSystemIDandChk/PartPlugins/PartPlugin.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FileSystemIDandChk.PartPlugins
|
||||
{
|
||||
public abstract class PartPlugin
|
||||
{
|
||||
public string Name;
|
||||
public Guid PluginUUID;
|
||||
|
||||
protected PartPlugin ()
|
||||
{
|
||||
}
|
||||
|
||||
public abstract bool GetInformation(FileStream stream, out List<Partition> partitions);
|
||||
}
|
||||
|
||||
public struct Partition
|
||||
{
|
||||
public ulong PartitionSequence; // Partition number, 0-started
|
||||
public string PartitionType; // Partition type
|
||||
public string PartitionName; // Partition name (if the scheme supports it)
|
||||
public long PartitionStart; // Start of the partition, in bytes
|
||||
public long PartitionLength; // Length in bytes of the partition
|
||||
public string PartitionDescription; // Information that does not find space in this struct
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user