pynetdicom.dsutils.decode¶
- 
pynetdicom.dsutils.decode(bytestring, is_implicit_vr, is_little_endian, deflated=False)[source]¶
- Decode bytestring to a pydicom - Dataset.- Changed in version 1.5: Added deflated keyword parameter - Parameters
- byestring (io.BytesIO) – The encoded dataset in the DIMSE Message sent from the peer AE. 
- is_implicit_vr (bool) – The dataset is encoded as implicit ( - True) or explicit VR (- False).
- is_little_endian (bool) – The byte ordering of the encoded dataset, - Truefor little endian,- Falsefor big endian.
- deflated (bool, optional) – - Trueif the dataset has been encoded using Deflated Explicit VR Little Endian transfer syntax (default- False).
 
- Returns
- The decoded dataset. 
- Return type