lib: add gun implementation memcpy