pydicom.values.convert_tag¶
- pydicom.values.convert_tag(byte_string: bytes, is_little_endian: bool, offset: int = 0) BaseTag[source]¶
Return a decoded
BaseTagfrom the encoded byte_string.- Parameters:
byte_string (bytes) – The encoded tag.
is_little_endian (bool) –
Trueif the encoding is little endian,Falseotherwise.offset (int, optional) – The byte offset in byte_string to the start of the tag.
- Returns:
The decoded tag.
- Return type: