PDComm.Secs1IoResult
Struct
The result of a Secs1Read or Secs1Write callback.
public readonly record struct Secs1IoResultParameters
| Name | Description |
|---|---|
Status | The outcome of the operation. |
Count | For Secs1IoStatus.Ok, the number of bytes read or written; it must not exceed the buffer length. Ignored for other statuses. |
Members
Secs1IoResult
Constructor
The result of a Secs1Read or Secs1Write callback.
public Secs1IoResult(Secs1IoStatus Status, nuint Count = 0)Parameters
| Name | Description |
|---|---|
Status | The outcome of the operation. |
Count | For Secs1IoStatus.Ok, the number of bytes read or written; it must not exceed the buffer length. Ignored for other statuses. |
Count
Property
For Secs1IoStatus.Ok, the number of bytes read or written; it must not exceed the buffer length. Ignored for other statuses.
public nuint Count { get; init; }Status
Property
The outcome of the operation.
public Secs1IoStatus Status { get; init; }