Table of Contents

Class PDataTF

Namespace
FellowOakDicom.Network
Assembly
fo-dicom.core.dll

P-DATA-TF

public class PDataTF : PDU, IDisposable
Inheritance
PDataTF
Implements
Inherited Members
Extension Methods

Constructors

PDataTF(IMemoryProvider)

Initializes new P-DATA-TF

public PDataTF(IMemoryProvider memoryProvider)

Parameters

memoryProvider IMemoryProvider

Properties

PDVs

PDVs in this P-DATA-TF

public IReadOnlyList<PDV> PDVs { get; }

Property Value

IReadOnlyList<PDV>

Methods

AddPDV(PDV)

Adds a PDV to the PDVs in this P-DATA-TF

public void AddPDV(PDV pdv)

Parameters

pdv PDV

Dispose()

Disposes and clears the PDVs

public void Dispose()

~PDataTF()

Finalizes P-DATA-TF to avoid issues with improper disposal

protected ~PDataTF()

GetLengthOfPDVs()

Calculates the total length of the PDVs in this P-DATA-TF

public uint GetLengthOfPDVs()

Returns

uint

Length of PDVs

Read(RawPDU)

Reads P-DATA-TF from PDU buffer

public void Read(RawPDU raw)

Parameters

raw RawPDU

PDU buffer

ToString()

public override string ToString()

Returns

string

WriteAsync(Stream, CancellationToken)

Writes P-DATA-TF to the provided stream

public Task WriteAsync(Stream stream, CancellationToken cancellationToken)

Parameters

stream Stream

The stream to write the PDU to

cancellationToken CancellationToken

The token that cancels the write operation

Returns

Task

A Task that represents the asynchronous operation