These two lines don't seem correct to me for non-UTF-8 AbstractString types:
|
resize!(buffer, l + sizeof(val)) |
|
unsafe_copyto!(pointer(buffer, l+1), pointer(val,1), sizeof(val)) |
Indeed this will copy the contents of the string even if it uses a different encoding from existing data.
These two lines don't seem correct to me for non-UTF-8
AbstractStringtypes:WeakRefStrings.jl/src/WeakRefStrings.jl
Lines 369 to 370 in caf4ed4
Indeed this will copy the contents of the string even if it uses a different encoding from existing data.