Class PDataMessenger
Inheritance
System.Object
PDataMessenger
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)
System.Object.ToString()
Namespace:EvilDICOM.Network.Messaging
Assembly:EvilDICOM.dll
Syntax
public class PDataMessenger
Methods
View SourceGetChunks(DICOMObject, Int32, PresentationContext)
Splits the DICOM object into chunks that are within the max PDU size
Declaration
public static List<byte[]> GetChunks(DICOMObject dicomObject, int maxPduSize, PresentationContext pc)
Parameters
| Type | Name | Description |
|---|---|---|
| DICOMObject | dicomObject | the DICOM objec to be split |
| System.Int32 | maxPduSize | the max length (in bytes) for a PDU |
| PresentationContext | pc |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Byte[]> |
GetPDataTFs(AbstractDIMSEBase, PresentationContext, Int32)
Declaration
public static List<PDataTF> GetPDataTFs(AbstractDIMSEBase dimse, PresentationContext pContext, int maxPDULength = 16384)
Parameters
| Type | Name | Description |
|---|---|---|
| AbstractDIMSEBase | dimse | |
| PresentationContext | pContext | |
| System.Int32 | maxPDULength |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.List<PDataTF> |
Send(AbstractDIMSEBase, Association, PresentationContext)
Declaration
public static void Send(AbstractDIMSEBase dimse, Association asc, PresentationContext pContext = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AbstractDIMSEBase | dimse | |
| Association | asc | |
| PresentationContext | pContext |
WriteDimseToStream(AbstractDIMSEBase, Stream, PresentationContext, Int32)
Declaration
public static void WriteDimseToStream(AbstractDIMSEBase dimse, Stream stream, PresentationContext pContext, int maxPDULength = 16384)
Parameters
| Type | Name | Description |
|---|---|---|
| AbstractDIMSEBase | dimse | |
| System.IO.Stream | stream | |
| PresentationContext | pContext | |
| System.Int32 | maxPDULength |