Class HardDiskTemplates.HardDiskTemplate

Namespace
CHDSharp.Encoder.Models
Assembly
CHDSharpLib.dll

A single hard disk geometry template.

public record HardDiskTemplates.HardDiskTemplate : IEquatable<HardDiskTemplates.HardDiskTemplate>
Inheritance
HardDiskTemplates.HardDiskTemplate
Implements
Inherited Members

Constructors

HardDiskTemplate(string, string, uint, uint, uint, uint)

A single hard disk geometry template.

public HardDiskTemplate(string Manufacturer, string Model, uint Cylinders, uint Heads, uint Sectors, uint SectorSize)

Parameters

Manufacturer string

Drive manufacturer name.

Model string

Drive model string.

Cylinders uint

Number of cylinders.

Heads uint

Number of heads.

Sectors uint

Sectors per track.

SectorSize uint

Bytes per sector.

Properties

Cylinders

Number of cylinders.

public uint Cylinders { get; init; }

Property Value

uint

Heads

Number of heads.

public uint Heads { get; init; }

Property Value

uint

Manufacturer

Drive manufacturer name.

public string Manufacturer { get; init; }

Property Value

string

Model

Drive model string.

public string Model { get; init; }

Property Value

string

SectorSize

Bytes per sector.

public uint SectorSize { get; init; }

Property Value

uint

Sectors

Sectors per track.

public uint Sectors { get; init; }

Property Value

uint

TotalBytes

Total image size in bytes (Cylinders * Heads * Sectors * SectorSize).

public ulong TotalBytes { get; }

Property Value

ulong

TotalMb

Total image size in megabytes (for display).

public long TotalMb { get; }

Property Value

long