Class PDV
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
PDV
public class PDV : IDisposable
- Inheritance
-
PDV
- Implements
- Inherited Members
- Extension Methods
Constructors
PDV(IMemoryProvider)
Initializes new PDV
public PDV(IMemoryProvider memoryProvider)
Parameters
memoryProviderIMemoryProvider
PDV(byte, IMemory, int, bool, bool)
Initializes new PDV
public PDV(byte pcid, IMemory value, int valueLength, bool command, bool last)
Parameters
pcidbytePresentation context ID
valueIMemoryPDV data
valueLengthintLength of the PDV data
commandboolIs command
lastboolIs last fragment of command or data
Properties
IsCommand
PDV is command
public bool IsCommand { get; set; }
Property Value
IsLastFragment
PDV is last fragment of command or data
public bool IsLastFragment { get; set; }
Property Value
PCID
Presentation context ID
public byte PCID { get; set; }
Property Value
PDVLength
Length of this PDV
public uint PDVLength { get; }
Property Value
Value
PDV data
public IMemory Value { get; }
Property Value
ValueLength
Length of the PDV data
public int ValueLength { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~PDV()
Finalizes PDV to avoid issues with improper disposal
protected ~PDV()
Read(RawPDU)
Reads PDV from PDU buffer
public uint Read(RawPDU raw)
Parameters
rawRawPDUPDU buffer
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Write(RawPDU)
Writes PDV to PDU buffer
public void Write(RawPDU pdu)
Parameters
pduRawPDUPDU buffer