fn value_reader(
        &mut self,
        header: &DataElementHeader,
    ) -> Result<std::io::Take<&mut Self::Reader>> {
        match header.vr() {
            VR::SQ => {
                // sequence objects... should not work
                NonPrimitiveType {
                    position: self.bytes_read,
                }
                .fail()
            }
            _ => Ok(self.from.by_ref().take(
                header
                    .length()
                    .get()
                    .map(u64::from)
                    .unwrap_or(std::u64::MAX),
            )),
        }
    }
/// Obtain a reader which outlines the primitive value data from the
/// given source.
Obtain a reader which outlines the primitive value data from the
given source.
Obtain a reader which outlines the primitive value data from the given source .
fn value_reader(
        &mut self,
        header: &DataElementHeader,
    ) -> Result<std::io::Take<&mut Self::Reader>> {
        match header.vr() {
            VR::SQ => {
                // sequence objects... should not work
                NonPrimitiveType {
                    position: self.bytes_read,
                }
                .fail()
            }
            _ => Ok(self.from.by_ref().take(
                header
                    .length()
                    .get()
                    .map(u64::from)
                    .unwrap_or(std::u64::MAX),
            )),
        }
    }
fn value_reader ( & mut self , header : & DataElementHeader , ) -> Result < std :: io :: Take < & mut Self :: Reader > > { match header . vr ( ) { VR :: SQ => { // sequence objects... should not work NonPrimitiveType { position : self . bytes_read , } . fail ( ) } _ => Ok ( self . from . by_ref ( ) . take ( header . length ( ) . get ( ) . map ( u64 :: from ) . unwrap_or ( std :: u64 :: MAX ) , ) ) , } }
Obtain a reader which outlines the primitive value data from the
given source.
Obtain a reader which outlines the primitive value data from the given source .
&mut self
header
&DataElementHeader
&mut self
header
&DataElementHeader