buffer的memcpy代替memmove