dicom_parser::dataset

Module lazy_read

Source
Expand description

This module contains a mid-level abstraction for reading DICOM content sequentially and in a lazy fashion. That is, unlike the reader in the read module, DICOM values can be skipped and most allocations can be avoided.

At this level, headers and values are treated as tokens which can be used to form a syntax tree of a full data set. Whenever an element value or pixel sequence item is encountered, the given token does not consume the value from the reader, thus letting users decide whether to:

  • fully read the value and turn it into an in-memory representation;
  • skip the value altogether, by reading into a sink;
  • copying the bytes of the value into another writer, such as a previously allocated buffer.

Structs§

  • An attached iterator for retrieving DICOM object element markers from a random access data source.

Enums§

Type Aliases§