@@ -163,7 +163,7 @@ export default class Decoder {
163
163
// If the value is 30, then the size is 285 + *the next two bytes after the type
164
164
// specifying bytes as a single unsigned integer*.
165
165
if ( size === 30 ) {
166
- return cursor ( 285 + this . db . readUInt16BE ( offset , false ) , offset + 2 ) ;
166
+ return cursor ( 285 + this . db . readUInt16BE ( offset ) , offset + 2 ) ;
167
167
}
168
168
169
169
// At this point `size` is always 31.
@@ -227,7 +227,7 @@ export default class Decoder {
227
227
// bytes as a 32-bit value. In this case, the last three bits of the control byte
228
228
// are ignored.
229
229
} else {
230
- packed = this . db . readUInt32BE ( offset , true ) ;
230
+ packed = this . db . readUInt32BE ( offset ) ;
231
231
}
232
232
233
233
offset += pointerSize + 1 ;
@@ -252,11 +252,11 @@ export default class Decoder {
252
252
}
253
253
254
254
private decodeDouble ( offset : number ) {
255
- return this . db . readDoubleBE ( offset , true ) ;
255
+ return this . db . readDoubleBE ( offset ) ;
256
256
}
257
257
258
258
private decodeFloat ( offset : number ) {
259
- return this . db . readFloatBE ( offset , true ) ;
259
+ return this . db . readFloatBE ( offset ) ;
260
260
}
261
261
262
262
private decodeMap ( size : number , offset : number ) {
@@ -280,7 +280,7 @@ export default class Decoder {
280
280
if ( size === 0 ) {
281
281
return 0 ;
282
282
}
283
- return this . db . readInt32BE ( offset , true ) ;
283
+ return this . db . readInt32BE ( offset ) ;
284
284
}
285
285
286
286
private decodeUint ( offset : number , size : number ) {
@@ -325,8 +325,7 @@ export default class Decoder {
325
325
const numberOfLongs = size / 4 ;
326
326
for ( let i = 0 ; i < numberOfLongs ; i ++ ) {
327
327
integer =
328
- integer * BigInt ( 4294967296 ) +
329
- BigInt ( buffer . readUInt32BE ( i << 2 , true ) ) ;
328
+ integer * BigInt ( 4294967296 ) + BigInt ( buffer . readUInt32BE ( i << 2 ) ) ;
330
329
}
331
330
332
331
return integer . toString ( ) ;
0 commit comments