add a copy FLOAT buffer function