StringEncodings.jl
StringEncodings.jl copied to clipboard
Make decode() interface accept AbstractVector
Hi,
we are working a lot with @view/SubArray on top of a larger buffer. Currently the decode() function requires a Vector{UInt8} argument. For us it means we need to copy the data in an inner, performance optimized, loop. In case there is no specific reason, would it possible to change the interface to support AbstractVector{UInt8}?
thanks a lot
Maybe I've been overly restrictive. Can you make a PR to use AbstractVector (with tests to check that it works)?