dataply 0.0.21-alpha.1 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +24 -25
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5695,31 +5695,31 @@ function numberToBytes(value, buffer, offset = 0, length = buffer.length) {
|
|
|
5695
5695
|
}
|
|
5696
5696
|
|
|
5697
5697
|
// src/utils/bytesToNumber.ts
|
|
5698
|
+
var tempBuffer = new ArrayBuffer(8);
|
|
5699
|
+
var tempView = new DataView(tempBuffer);
|
|
5700
|
+
var tempArray = new Uint8Array(tempBuffer);
|
|
5698
5701
|
function bytesToNumber(bytes, offset = 0, length = bytes.length) {
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
high >>>= 0;
|
|
5720
|
-
return low + high * 4294967296;
|
|
5702
|
+
tempArray.set(bytes.subarray(offset, offset + length));
|
|
5703
|
+
switch (length) {
|
|
5704
|
+
case 1:
|
|
5705
|
+
return tempView.getUint8(0);
|
|
5706
|
+
case 2:
|
|
5707
|
+
return tempView.getUint16(0, true);
|
|
5708
|
+
case 3:
|
|
5709
|
+
return tempView.getUint16(0, true) + (tempView.getUint8(2) << 16);
|
|
5710
|
+
case 4:
|
|
5711
|
+
return tempView.getUint32(0, true);
|
|
5712
|
+
case 5:
|
|
5713
|
+
return tempView.getUint32(0, true) + tempView.getUint8(4) * 4294967296;
|
|
5714
|
+
case 6:
|
|
5715
|
+
return tempView.getUint32(0, true) + tempView.getUint16(4, true) * 4294967296;
|
|
5716
|
+
case 7:
|
|
5717
|
+
return tempView.getUint32(0, true) + (tempView.getUint16(4, true) + (tempView.getUint8(6) << 16)) * 4294967296;
|
|
5718
|
+
case 8:
|
|
5719
|
+
return tempView.getUint32(0, true) + tempView.getUint32(4, true) * 4294967296;
|
|
5720
|
+
default:
|
|
5721
|
+
return 0;
|
|
5721
5722
|
}
|
|
5722
|
-
return low;
|
|
5723
5723
|
}
|
|
5724
5724
|
|
|
5725
5725
|
// src/utils/bitwise.ts
|
|
@@ -8688,8 +8688,7 @@ var RowTableEngine = class {
|
|
|
8688
8688
|
}
|
|
8689
8689
|
const pkIndexMap = /* @__PURE__ */ new Map();
|
|
8690
8690
|
for (let i = 0, len = pks.length; i < len; i++) {
|
|
8691
|
-
|
|
8692
|
-
pkIndexMap.set(pk, i);
|
|
8691
|
+
pkIndexMap.set(pks[i], i);
|
|
8693
8692
|
}
|
|
8694
8693
|
const minPk = Math.min(...pks);
|
|
8695
8694
|
const maxPk = Math.max(...pks);
|