IO Utilities (pydicom.fileutil)

Utilities for dataset I/O.

absorb_delimiter_item(fp, is_little_endian, ...)

Read (and ignore) undefined length sequence or item terminators.

find_bytes(fp, bytes_to_find[, read_size, ...])

Read in the file until a specific byte sequence found.

find_delimiter(fp, delimiter, is_little_endian)

Return file position where 4-byte delimiter is located.

length_of_undefined_length(fp, delimiter, ...)

Search through the file to find the delimiter and return the length of the data element.

read_undefined_length_value(fp, ...[, ...])

Read until delimiter_tag and return the value up to that point.