dolphindb 3.0.120 → 3.0.122
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/browser.js +4 -3
- package/browser.js.map +1 -1
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -825,8 +825,8 @@ export class DdbObj {
|
|
|
825
825
|
// 构造 indexes
|
|
826
826
|
const dv = new DataView(buf.buffer, buf.byteOffset);
|
|
827
827
|
let i_value_start = 0;
|
|
828
|
-
const size = Number(dv.
|
|
829
|
-
i_value_start +=
|
|
828
|
+
const size = Number(dv.getUint32(i_value_start, le));
|
|
829
|
+
i_value_start += 4;
|
|
830
830
|
const indexes = new Array(size * 2);
|
|
831
831
|
for (let i = 0; i < size; i++) {
|
|
832
832
|
const type = dv.getUint32(i_value_start, le);
|
|
@@ -848,7 +848,8 @@ export class DdbObj {
|
|
|
848
848
|
assert(form === DdbForm.vector, t('iotany sub vector 不支持非 vector 类型'));
|
|
849
849
|
const sub_size = dv.getUint32(i_value_start, le);
|
|
850
850
|
i_value_start += 8; // 同时跳过 sub_size 和 cols
|
|
851
|
-
|
|
851
|
+
let [len, vector] = this.parse_vector_items(buf.subarray(i_value_start), le, sub_type, sub_size);
|
|
852
|
+
vector = converts(sub_type, vector, sub_size, le);
|
|
852
853
|
i_value_start += len;
|
|
853
854
|
sub_vec.set(sub_type, vector);
|
|
854
855
|
}
|