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

ReadIndefiniteBigEndian uses LittleEndian for EndOfSequenceItem #89

Open
Recomia opened this issue May 4, 2021 · 0 comments
Open

ReadIndefiniteBigEndian uses LittleEndian for EndOfSequenceItem #89

Recomia opened this issue May 4, 2021 · 0 comments

Comments

@Recomia
Copy link

Recomia commented May 4, 2021

Line 97

private static DICOMObject ReadIndefiniteBigEndian(DICOMBinaryReader dr, TransferSyntax syntax, StringEncoding enc)
{
var elements = new List<IDICOMElement>();
while (!IsEndOfSequenceItemLittleEndian(dr) && dr.StreamLength != dr.StreamPosition)
{
dr.StreamPosition -= 8;
elements.Add(DICOMElementReader.ReadElementExplicitBigEndian(dr, enc));
}
return new DICOMObject(elements);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant