Nathan Zimmerberg
Nathan Zimmerberg
If I understand: https://github.com/JuliaLang/julia/blob/c38e7cd76ad5576a52e4726f78229e8c6e5cc212/src/genericmemory.c#L196-L207 correctly, there are two possible mutations, setting length to 0, and setting the byte after the end to null. Are `String` required to always be null...
Isn't `Vector` allowed to shift the data in its mem when resized? For example, in the future as an optimization, could doing `popfirst!` then `push!` cause the data to be...
Unfortunately, this is quite complicated to do in a cross-platform manner that safely handles all potential errors or malicious zip archives. The code you link to has a few big...
https://github.com/OxygenFramework/Oxygen.jl/issues/186 seems like the same issue
Also, check for uses of `StringMemory` for example: https://github.com/JuliaLang/julia/blob/f3561ae5af05713480aa9a8166501449305a0339/stdlib/FileWatching/src/pidfile.jl#L283-L288 #53962
`takestring!` can mutate the bytes in the underlying memory of a `Vector` input, it is not just making a `String` view.
`String(Memory)` has to copy according to the docs of `String` since `Memory` is an `AbstractVector{UInt8}` and isn't a `Vector{UInt8}`.
With #178 if the `stop_on_end = true` keyword argument is set when constructing the transcoding stream, the underlying stream isn't closed when the transcoding stream is closed. Now your last...
This was fixed by #152
This seems similar to https://stackoverflow.com/questions/11662745/how-can-one-copy-the-internal-state-of-zlib-compressor-object-in-python I think a potential solution would be to add `deepcopy` support for Codecs.