From 47394b67b0e2839cae095652b47ab23d02a44f64 Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Tue, 21 Apr 2020 14:24:47 -0700 Subject: [PATCH] Provide readInt8 in rle codec with arguments --- lib/codec/plain_dictionary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/codec/plain_dictionary.js b/lib/codec/plain_dictionary.js index d0499418..ddd091b7 100644 --- a/lib/codec/plain_dictionary.js +++ b/lib/codec/plain_dictionary.js @@ -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})); -}; \ No newline at end of file +};