pydicom.fileutil.find_delimiter¶
-
pydicom.fileutil.
find_delimiter
(fp, delimiter, is_little_endian, read_size=128, rewind=True)[source]¶ Return file position where 4-byte delimiter is located.
- Parameters
delimiter (int) – The delimiter to search for.
is_little_endian (bool) –
True
if little endian,False
otherwise.read_size (int) – See
find_bytes()
for parameter info.rewind (bool) – Flag to rewind to initial position after searching.
- Returns
Returns
None
if end of file is reached without finding the delimiter, otherwise the byte offset to the delimiter.- Return type