Skip to content

Commit f7cf864

Browse files
bellenotlinev
authored andcommitted
Add missing streamer for TStreamerInfo::kCharStar (char *)
1 parent 413f3da commit f7cf864

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/JSRootIOEvolution.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,15 @@
20112011
break;
20122012
case JSROOT.IO.kChar:
20132013
member.func = function(buf,obj) { obj[this.name] = buf.ntoi1(); }; break;
2014+
case JSROOT.IO.kCharStar:
2015+
member.func = function(buf,obj) {
2016+
obj[this.name] = "";
2017+
var n = buf.ntoi4();
2018+
for (var i=0;i<n;++i) {
2019+
obj[this.name] += String.fromCharCode(buf.ntou1());
2020+
}
2021+
};
2022+
break;
20142023
case JSROOT.IO.kShort:
20152024
member.func = function(buf,obj) { obj[this.name] = buf.ntoi2(); }; break;
20162025
case JSROOT.IO.kInt:

0 commit comments

Comments
 (0)