Permalink
Browse files

Added 24 bit version.

  • Loading branch information...
1 parent 1be8de0 commit f3679d209901bdf3a78fdd03ef555fd353acc3b6 @carsonmcdonald carsonmcdonald committed Apr 13, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/binary.js
View
@@ -303,6 +303,12 @@ function Binary(buffer) {
);
}
+ this.getWord24be = function () {
+ return get.call(
+ this, { into : arguments, bytes : 3, endian : 'big' }
+ );
+ };
+
this.getWord32be = function () {
return get.call(
this, { into : arguments, bytes : 4, endian : 'big' }

0 comments on commit f3679d2

Please sign in to comment.