pynetdicom.pdu.P_DATA_TF¶
- class pynetdicom.pdu.P_DATA_TF[source][source]¶
A P-DATA-TF PDU.
A P-DATA-TF PDU is used once an association has been established to send DIMSE message data.
- pdu_length¶
The number of bytes from the first byte following the PDU Length field to the last byte of the PDU.
- Type
- presentation_data_value_items¶
The Presentation Data Value Item(s) field value.
- Type
list of pdu.PresentationDataValueItem
Notes
A P-DATA-TF PDU requires the following parameters:
PDU type (1, fixed value, 0x04)
PDU length (1)
Presentation data value Item(s) (1 or more)
Encoding
When encoded, a P-DATA-TF PDU has the following structure, taken from Table 9-22 1 (offsets shown with Python indexing). PDUs are always encoded using Big Endian 2.
Offset
Length
Description
0
1
PDU type
1
1
Reserved
2
4
PDU length
6
Variable
Presentation data value items
References
Methods
__init__()Initialise a new P-DATA-TF PDU.
decode(bytestream)Decode bytestream and use the result to set the field values of the PDU.
encode()Return the encoded PDU as bytes.
from_primitive(primitive)Setup the current PDU using a P-DATA primitive.
to_primitive()Return a P-DATA primitive from the current PDU.
Attributes
Return the PDU Length field value as an int.
Return the PDU Type field value an int.