Skip to content

Commit

Permalink
Merge pull request ZJONSSON#43 from FZSS/master
Browse files Browse the repository at this point in the history
Provide the readInt8 function call in plain_dictionary codec with arguments
  • Loading branch information
ZJONSSON authored Apr 21, 2020
2 parents 94f8592 + 47394b6 commit e5c4344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/codec/plain_dictionary.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const rle = require('./rle');

exports.decodeValues = function(type, cursor, count, opts) {
opts.bitWidth = cursor.buffer.slice(cursor.offset, cursor.offset+1).readInt8();
opts.bitWidth = cursor.buffer.slice(cursor.offset, cursor.offset+1).readInt8(0);
cursor.offset += 1;
return rle.decodeValues(type, cursor, count, Object.assign({}, opts, {disableEnvelope: true}));
};
};

0 comments on commit e5c4344

Please sign in to comment.