Code example for CharBuffer

Methods: capacity, clear, put

0
        /** 
         * @param indexArray indices to set 
         */ 
	public void setIndices(char[] indexArray) {
		int size = indexArray.length;
		if(mIndices == null || mIndices.capacity() != size) {
			mIndices = BufferUtils.createCharBuffer(size);
		} 
		mIndices.clear();
		mIndices.put(indexArray);
		return; 
	} 
	 
	/** 
	 * Sets the bounding volume. 
	 * @param bound custom bounding volume 
	 */ 
	public void setModelBound(AABBox bound) {
		mModelBound = bound;
		mHasDirtyModelBound = false;
	}