pynetdicom.dsutils.decode#
- pynetdicom.dsutils.decode(bytestring: BytesIO, is_implicit_vr: bool, is_little_endian: bool, deflated: bool = False) Dataset[source]#
Decode bytestring to a pydicom
Dataset.- 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 (defaultFalse).
- Returns:
The decoded dataset.
- Return type: