Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/PamReader.h @ 4211:afad57ac30ef
enforcing parameter "enforceAligned" in PamReader
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 18:10:31 +0200 |
parents | bf7b9edf6b81 |
children | b30a8de92ad9 |
comparison
equal
deleted
inserted
replaced
4210:7b14ddf795c5 | 4211:afad57ac30ef |
---|---|
59 */ | 59 */ |
60 std::string content_; | 60 std::string content_; |
61 | 61 |
62 public: | 62 public: |
63 /** | 63 /** |
64 See doc for field enforceAligned_ | 64 See doc for field enforceAligned_. Setting "enforceAligned" is slower, |
65 but avoids possible crashes due to non-aligned memory access. It is | |
66 recommended to set this parameter to "true". | |
65 */ | 67 */ |
66 PamReader(bool enforceAligned = false) : | 68 explicit PamReader(bool enforceAligned) : |
67 enforceAligned_(enforceAligned), | 69 enforceAligned_(enforceAligned), |
68 alignedImageBuffer_(NULL) | 70 alignedImageBuffer_(NULL) |
69 { | 71 { |
70 } | 72 } |
71 | 73 |