You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> a =collect(transcode(UInt8, "abc"))
3-element Array{UInt8,1}:0x610x620x63
julia> b =transcode(String, a)
"abc"
julia> a
0-element Array{UInt8,1}
Note that this is only the case when a is a Vector{UInt8} (obtained through collect). When keeping the CodeUnits variable returned by the transcode(UInt8,...) call, there is no destruction:
julia> a =transcode(UInt8, "abc")
3-element Base.CodeUnits{UInt8,String}:0x610x620x63
julia> b =transcode(String, a)
"abc"
julia> a
3-element Base.CodeUnits{UInt8,String}:0x610x620x63
The text was updated successfully, but these errors were encountered:
I'm seeing the following behaviour on 1.0:
Note that this is only the case when
a
is aVector{UInt8}
(obtained throughcollect
). When keeping theCodeUnits
variable returned by thetranscode(UInt8,...)
call, there is no destruction:The text was updated successfully, but these errors were encountered: