[*] in shrink buffer functions - replaced two memcpy with one memmove,...
[*] in shrink buffer functions - replaced two memcpy with one memmove, expected to have better performance with this
[*] in shrink buffer functions - replaced two memcpy with one memmove, expected to have better performance with this