code: public void setData(ByteBuffer buffer) {
          buffer.rewind();
          this.buffer = CausticUtil.createByteBuffer(buffer.capacity());
          this.buffer.put(buffer);
      }
docs: Replaces the current buffer data with a copy of the given {@link java.nio.ByteBuffer} This method arbitrarily creates data for the ByteBuffer regardless of the data type of the vertex
  attribute.
  
  @param buffer to set