The buffer contains only the bytes as these are stored, I don't think you should multiply them by 2.