docs: public DataBuffer asNd4jBuffer(DataType type, int elementSize) {
          int length = content.length / elementSize;
          DataBuffer ret = Nd4j.createBuffer(ByteBuffer.allocateDirect(content.length),type,length,0);
          for(int i = 0; i < length; i++) {
              switch(type) {
                  case DOUBLE:
                      ret.put(i,getDouble(i));
                      break;
                  case INT:
                      ret.put(i,getInt(i));
                      break;
                  case FLOAT:
                      ret.put(i,getFloat(i));
                     break;
                  case LONG:
                      ret.put(i,getLong(i));
                      break;
              }
          }
          return ret;
      }