@@ -163,7 +163,7 @@ export default class Decoder {
163163 // If the value is 30, then the size is 285 + *the next two bytes after the type
164164 // specifying bytes as a single unsigned integer*.
165165 if ( size === 30 ) {
166- return cursor ( 285 + this . db . readUInt16BE ( offset , false ) , offset + 2 ) ;
166+ return cursor ( 285 + this . db . readUInt16BE ( offset ) , offset + 2 ) ;
167167 }
168168
169169 // At this point `size` is always 31.
@@ -227,7 +227,7 @@ export default class Decoder {
227227 // bytes as a 32-bit value. In this case, the last three bits of the control byte
228228 // are ignored.
229229 } else {
230- packed = this . db . readUInt32BE ( offset , true ) ;
230+ packed = this . db . readUInt32BE ( offset ) ;
231231 }
232232
233233 offset += pointerSize + 1 ;
@@ -252,11 +252,11 @@ export default class Decoder {
252252 }
253253
254254 private decodeDouble ( offset : number ) {
255- return this . db . readDoubleBE ( offset , true ) ;
255+ return this . db . readDoubleBE ( offset ) ;
256256 }
257257
258258 private decodeFloat ( offset : number ) {
259- return this . db . readFloatBE ( offset , true ) ;
259+ return this . db . readFloatBE ( offset ) ;
260260 }
261261
262262 private decodeMap ( size : number , offset : number ) {
@@ -280,7 +280,7 @@ export default class Decoder {
280280 if ( size === 0 ) {
281281 return 0 ;
282282 }
283- return this . db . readInt32BE ( offset , true ) ;
283+ return this . db . readInt32BE ( offset ) ;
284284 }
285285
286286 private decodeUint ( offset : number , size : number ) {
@@ -325,8 +325,7 @@ export default class Decoder {
325325 const numberOfLongs = size / 4 ;
326326 for ( let i = 0 ; i < numberOfLongs ; i ++ ) {
327327 integer =
328- integer * BigInt ( 4294967296 ) +
329- BigInt ( buffer . readUInt32BE ( i << 2 , true ) ) ;
328+ integer * BigInt ( 4294967296 ) + BigInt ( buffer . readUInt32BE ( i << 2 ) ) ;
330329 }
331330
332331 return integer . toString ( ) ;
0 commit comments