Closed 52funny closed 1 year ago
Your solution is not safe because the Parse function returns a Result type that hangs onto a slice of the original string.
The output Result.Raw
will now be a string that is pointing to data in the original byte slice.
Thank you for your answer, it was my lack of consideration.
use unsafe to speed up the conversion of bytes to string