Skip to content

Commit

Permalink
added a way to differentiate between a littleEndianParser and a bigEn…
Browse files Browse the repository at this point in the history
…dianParser
  • Loading branch information
Djeisen642 committed Jul 31, 2016
1 parent 1758682 commit c55297f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion dist/dicomParser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! dicom-parser - v1.7.2 - 2016-07-16 | (c) 2014 Chris Hafey | https://github.com/chafey/dicomParser */
/*! dicom-parser - v1.7.2 - 2016-07-30 | (c) 2014 Chris Hafey | https://github.com/chafey/dicomParser */
(function (root, factory) {

// node.js
Expand Down Expand Up @@ -767,6 +767,7 @@ var dicomParser = (function (dicomParser)
}

dicomParser.bigEndianByteArrayParser = {
bigEndian: true,
/**
*
* Parses an unsigned int 16 from a big-endian byte array
Expand Down Expand Up @@ -927,6 +928,7 @@ var dicomParser = (function (dicomParser)

return dicomParser;
}(dicomParser));

/**
* Internal helper functions common to parsing byte arrays of any type
*/
Expand Down Expand Up @@ -1554,6 +1556,7 @@ var dicomParser = (function (dicomParser)
}

dicomParser.littleEndianByteArrayParser = {
bigEndian: false,
/**
*
* Parses an unsigned int 16 from a little-endian byte array
Expand Down Expand Up @@ -1716,6 +1719,7 @@ var dicomParser = (function (dicomParser)

return dicomParser;
}(dicomParser));

/**
* Internal helper functions for parsing implicit and explicit DICOM data sets
*/
Expand Down
4 changes: 2 additions & 2 deletions dist/dicomParser.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/bigEndianByteArrayParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var dicomParser = (function (dicomParser)
}

dicomParser.bigEndianByteArrayParser = {
bigEndian: true,
/**
*
* Parses an unsigned int 16 from a big-endian byte array
Expand Down Expand Up @@ -171,4 +172,4 @@ var dicomParser = (function (dicomParser)
};

return dicomParser;
}(dicomParser));
}(dicomParser));
3 changes: 2 additions & 1 deletion src/littleEndianByteArrayParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var dicomParser = (function (dicomParser)
}

dicomParser.littleEndianByteArrayParser = {
bigEndian: false,
/**
*
* Parses an unsigned int 16 from a little-endian byte array
Expand Down Expand Up @@ -173,4 +174,4 @@ var dicomParser = (function (dicomParser)
};

return dicomParser;
}(dicomParser));
}(dicomParser));

0 comments on commit c55297f

Please sign in to comment.