@@ -376,9 +376,36 @@ CustomStreamers = {
376
376
} ,
377
377
378
378
TBranch ( buf , obj ) {
379
- if ( buf . last_read_version > 9 )
380
- buf . streamClassMembers ( obj , 'TBranch' , buf . last_read_version , buf . last_read_checksum ) ;
381
-
379
+ const v = buf . last_read_version ;
380
+ if ( v > 9 )
381
+ buf . streamClassMembers ( obj , 'TBranch' , v ) ;
382
+ else {
383
+ buf . classStreamer ( obj , clTNamed ) ;
384
+ if ( v > 7 )
385
+ buf . classStreamer ( obj , clTAttFill ) ;
386
+ obj . fCompress = buf . ntoi4 ( ) ;
387
+ obj . fBasketSize = buf . ntoi4 ( ) ;
388
+ obj . fEntryOffsetLen = buf . ntoi4 ( ) ;
389
+ obj . fWriteBasket = buf . ntoi4 ( ) ;
390
+ obj . fEntryNumber = buf . ntoi4 ( ) ;
391
+ obj . fOffset = buf . ntoi4 ( ) ;
392
+ obj . fMaxBaskets = buf . ntoi4 ( ) ;
393
+ if ( v > 6 )
394
+ obj . fSplitLevel = buf . ntoi4 ( ) ;
395
+ obj . fEntries = buf . ntod ( ) ;
396
+ obj . fTotBytes = buf . ntod ( ) ;
397
+ obj . fZipBytes = buf . ntod ( ) ;
398
+ obj . fBranches = buf . classStreamer ( { } , clTObjArray ) ;
399
+ obj . fLeaves = buf . classStreamer ( { } , clTObjArray ) ;
400
+ obj . fBaskets = buf . classStreamer ( { } , clTObjArray ) ;
401
+ buf . ntoi1 ( ) ; // isArray
402
+ obj . fBasketBytes = buf . readFastArray ( obj . fMaxBaskets , kInt ) ;
403
+ buf . ntoi1 ( ) ; // isArray
404
+ obj . fBasketEntry = buf . readFastArray ( obj . fMaxBaskets , kInt ) ;
405
+ const isArray = buf . ntoi1 ( ) ;
406
+ obj . fBasketSeek = buf . readFastArray ( obj . fMaxBaskets , isArray === 2 ? kLong64 : kInt ) ;
407
+ obj . fFileName = buf . readTString ( ) ;
408
+ }
382
409
} ,
383
410
384
411
'ROOT::RNTuple' : {
0 commit comments