docs: public static float[] getFloatData(DataBuffer buf) {
          if (buf.allocationMode() == DataBuffer.AllocationMode.HEAP) {
              return buf.asFloat();
          } else {
              float[] ret = new float[(int) buf.length()];
              for (int i = 0; i < buf.length(); i++)
                  ret[i] = buf.getFloat(i);
              return ret;
          }
      }