I am talking about
pub fn escape_into(value: &str, dst: &mut Vec<u8>) {
This thing is pure unsafe semantically, a clear UB. IMO it should be deprecated and an alternative should be recommended:
pub unsafe fn escape_append(value: &str, dst: *mut u8, len: usize) -> usize { // or *mut u8
This would be
- Fair. One should not promise what he's not going to deliver.
- Performant and actually more handy.
I am talking about
This thing is pure unsafe semantically, a clear UB. IMO it should be deprecated and an alternative should be recommended:
This would be