Class PDV
PDV
Inheritance
System.Object
PDV
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FellowOakDicom.Network
Assembly: fo-dicom.core.dll
Syntax
public class PDV : IDisposable
Constructors
PDV(IMemoryProvider)
Initializes new PDV
Declaration
public PDV(IMemoryProvider memoryProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IMemoryProvider | memoryProvider |
PDV(Byte, IMemory, Int32, Boolean, Boolean)
Initializes new PDV
Declaration
public PDV(byte pcid, IMemory value, int valueLength, bool command, bool last)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | pcid | Presentation context ID |
| IMemory | value | PDV data |
| System.Int32 | valueLength | Length of the PDV data |
| System.Boolean | command | Is command |
| System.Boolean | last | Is last fragment of command or data |
Properties
IsCommand
PDV is command
Declaration
public bool IsCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsLastFragment
PDV is last fragment of command or data
Declaration
public bool IsLastFragment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
PCID
Presentation context ID
Declaration
public byte PCID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Byte |
PDVLength
Length of this PDV
Declaration
public uint PDVLength { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
Value
PDV data
Declaration
public IMemory Value { get; }
Property Value
| Type | Description |
|---|---|
| IMemory |
ValueLength
Length of the PDV data
Declaration
public int ValueLength { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Dispose()
Declaration
public void Dispose()
Finalize()
Finalizes PDV to avoid issues with improper disposal
Declaration
protected void Finalize()
Read(RawPDU)
Reads PDV from PDU buffer
Declaration
public uint Read(RawPDU raw)
Parameters
| Type | Name | Description |
|---|---|---|
| RawPDU | raw | PDU buffer |
Returns
| Type | Description |
|---|---|
| System.UInt32 |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
Write(RawPDU)
Writes PDV to PDU buffer
Declaration
public void Write(RawPDU pdu)
Parameters
| Type | Name | Description |
|---|---|---|
| RawPDU | pdu | PDU buffer |
Implements
System.IDisposable