Skip to content

Commit e233c86

Browse files
committed
Support I/O for TH2Poly (drawing still not there)
1 parent ccad403 commit e233c86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/JSRootIOEvolution.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@
250250
for (var i = 0; i < n; ++i)
251251
array[i] = this.ntoi1();
252252
break;
253+
case JSROOT.IO.kBool:
253254
case JSROOT.IO.kUChar:
254255
array = JSROOT.IO.NativeArray ? new Uint8Array(n) : new Array(n);
255256
for (var i = 0; i < n; ++i)
@@ -1826,6 +1827,12 @@
18261827
for (var i = 0; i < cnt; ++i )
18271828
res[i] = buf.ReadTString();
18281829
} else
1830+
if (this.typename == "TList*") {
1831+
var cnt = obj[this.cntname];
1832+
res = new Array(cnt);
1833+
for (var i = 0; i < cnt; ++i)
1834+
res[i] = buf.ClassStreamer({}, "TList");
1835+
} else
18291836
if (this.typename == "vector<double>") res = buf.ReadFastArray(buf.ntoi4(),JSROOT.IO.kDouble); else
18301837
if (this.typename == "vector<int>") res = buf.ReadFastArray(buf.ntoi4(),JSROOT.IO.kInt); else
18311838
if (this.typename == "vector<float>") res = buf.ReadFastArray(buf.ntoi4(),JSROOT.IO.kFloat); else

0 commit comments

Comments
 (0)