Skip to content

Commit

Permalink
Add TString recongnition
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasgal committed Dec 9, 2024
1 parent b6aa5a3 commit 32886e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/root.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ function _normalize_ftype(fType)
end
end

# TODO: there are still a few missing here (see constants.jl)
const _leaftypeconstlookup = Dict(
Const.kBool => Bool ,
Const.kChar => Int8 ,
Expand All @@ -344,6 +345,7 @@ const _leaftypeconstlookup = Dict(
Const.kDouble32 => Float32,
Const.kDouble => Float64,
Const.kFloat => Float32,
Const.kTString => String,
)

"""
Expand Down
4 changes: 4 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ function JaggType(f, branch, leaf)
leaf isa TLeafElement && leaf.fLenType==0 && return Offsetjagg
return Nojagg
end
if typeof(streamer) <: TStreamerString
# TODO: there are for sure also jagged strings, need to find files with those
return Nojagg

Check warning on line 76 in src/utils.jl

View check run for this annotation

Codecov / codecov/patch

src/utils.jl#L76

Added line #L76 was not covered by tests
end
if streamer.fSTLtype == Const.kSTLvector
(match(r"\[.*\]", leaf.fTitle) !== nothing) && return Offset6jaggjagg
return Offsetjagg
Expand Down

0 comments on commit 32886e8

Please sign in to comment.