Skip to content

Commit 6c7f7d3

Browse files
authored
Add TString recongnition (#374)
1 parent b6aa5a3 commit 6c7f7d3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/root.jl

+2
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ function _normalize_ftype(fType)
327327
end
328328
end
329329

330+
# TODO: there are still a few missing here (see constants.jl)
330331
const _leaftypeconstlookup = Dict(
331332
Const.kBool => Bool ,
332333
Const.kChar => Int8 ,
@@ -344,6 +345,7 @@ const _leaftypeconstlookup = Dict(
344345
Const.kDouble32 => Float32,
345346
Const.kDouble => Float64,
346347
Const.kFloat => Float32,
348+
Const.kTString => String,
347349
)
348350

349351
"""

src/utils.jl

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ function JaggType(f, branch, leaf)
7171
leaf isa TLeafElement && leaf.fLenType==0 && return Offsetjagg
7272
return Nojagg
7373
end
74+
if typeof(streamer) <: TStreamerString
75+
# TODO: there are for sure also jagged strings, need to find files with those
76+
return Nojagg
77+
end
7478
if streamer.fSTLtype == Const.kSTLvector
7579
(match(r"\[.*\]", leaf.fTitle) !== nothing) && return Offset6jaggjagg
7680
return Offsetjagg

0 commit comments

Comments
 (0)