Skip to main content

StorageDescriptor Class

Namespace: GHIElectronics.TinyCLR.Devices.Storage · Assembly: GHIElectronics.TinyCLR.Devices.Storage

Describes a storage medium's geometry and capabilities.

public class StorageDescriptor

Properties

CanReadDirect

public bool CanReadDirect { get; set; }

True when single-byte reads are supported (NOR-style flash, RAM).

CanWriteDirect

public bool CanWriteDirect { get; set; }

True when single-byte writes are supported.

CanExecuteDirect

public bool CanExecuteDirect { get; set; }

True when code can be executed in-place from this media (XIP).

EraseBeforeWrite

public bool EraseBeforeWrite { get; set; }

True when a sector must be erased before it can be overwritten (most flash).

Removable

public bool Removable { get; set; }

True when the media can be physically removed (SD card, USB stick).

RegionsContiguous

public bool RegionsContiguous { get; set; }

True when RegionAddresses form a contiguous span.

RegionsEqualSized

public bool RegionsEqualSized { get; set; }

True when every entry in RegionSizes has the same value.

RegionCount

public int RegionCount { get; set; }

Number of distinct erase regions reported.

RegionAddresses

public long[] RegionAddresses { get; set; }

Starting address of each erase region.

RegionSizes

public int[] RegionSizes { get; set; }

Size in bytes of each erase region (parallel to RegionAddresses).