Table of Contents

Class SlotRecord

Namespace
Pamoja.Update
Assembly
Pamoja.Update.dll

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

State SlotState

The state of the slot.

Sequence ulong

The sequence number of the image in the slot.

Size uint

The length of the image in bytes.

Digest byte[]

The digest of the image.

Written uint

How 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

ulong

Size

The length of the image in bytes.

public uint Size { get; init; }

Property Value

uint

State

The state of the slot.

public SlotState State { get; init; }

Property Value

SlotState

Written

How many bytes have been stored, which is where a resumed transfer picks up.

public uint Written { get; init; }

Property Value

uint