forked from ZJONSSON/parquetjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide readInt8 in rle codec with arguments
- Loading branch information
Kevin Chen
committed
Apr 21, 2020
1 parent
94f8592
commit 47394b6
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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})); | ||
}; | ||
}; |