Refactor FloatBuffer