Class SlotRecord
The record a device keeps about one slot, durable across a reboot.
public sealed record SlotRecord : IEquatable<SlotRecord>
- Inheritance
-
SlotRecord
- Implements
- Inherited Members
Constructors
SlotRecord(SlotState, ulong, uint, byte[], uint)
The record a device keeps about one slot, durable across a reboot.
public SlotRecord(SlotState State, ulong Sequence, uint Size, byte[] Digest, uint Written)
Parameters
StateSlotStateThe state of the slot.
SequenceulongThe sequence number of the image in the slot.
SizeuintThe length of the image in bytes.
Digestbyte[]The digest of the image.
WrittenuintHow many bytes have been stored, which is where a resumed transfer picks up.
Properties
Digest
The digest of the image.
public byte[] Digest { get; init; }
Property Value
- byte[]
Sequence
The sequence number of the image in the slot.
public ulong Sequence { get; init; }
Property Value
Size
The length of the image in bytes.
public uint Size { get; init; }
Property Value
State
The state of the slot.
public SlotState State { get; init; }
Property Value
Written
How many bytes have been stored, which is where a resumed transfer picks up.
public uint Written { get; init; }