to avoid copy/alloc/realloc memory. in C or unsafe code, you just need to offset the `data` pointer and `len-=n`.