Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ReadPreamble::Auto to automatic preamble detection #354

Merged
merged 2 commits into from
Jun 5, 2023

Conversation

Enet4
Copy link
Owner

@Enet4 Enet4 commented Jun 4, 2023

This makes the default behavior of automatically detecting whether the 128-byte preamble is present, making DICOM object reading functions easier to use.

Summary

  • When ReadPreamble is Auto, try to find the preamble by filling the reader buffer and looking for the DICM magic string.
  • Update documentation and tests accordingly.

@Enet4 Enet4 added enhancement C-object Crate: dicom-object labels Jun 4, 2023
Enet4 added 2 commits June 4, 2023 21:59
- try to find the preamble by filling the reader buffer and
  looking for the DICM magic string
- update documentation and tests accordingly
@Enet4 Enet4 force-pushed the imp/object/read-preamble-auto branch from 82333f7 to 391e270 Compare June 4, 2023 20:59
@Enet4 Enet4 merged commit 5c3e16a into master Jun 5, 2023
@Enet4 Enet4 deleted the imp/object/read-preamble-auto branch June 5, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-object Crate: dicom-object enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant