Example #1
0
	String Request::getInfoString(int type, DWORD size) {
		String txt;
		if (HttpQueryInfo(_hRequest , type , txt.useBuffer<char>(size) , &size , 0)) {
			txt.releaseBuffer<char>(size);
			return txt;
		} else {
			if (GetLastError()==ERROR_INSUFFICIENT_BUFFER) {
				return getInfoString(type, size + 1);
			} else {
				return "";
			}
		}
	}
Example #2
0
	String Request::getLocation() {
		return getInfoString(HTTP_QUERY_LOCATION);
	}
Example #3
0
	std::string Device::version() const {
		return getInfoString(CL_DEVICE_VERSION);
	}
Example #4
0
	std::string Device::driverVersion() const {
		return getInfoString(CL_DRIVER_VERSION);
	}
Example #5
0
	std::string Device::vendor() const {
		return getInfoString(CL_DEVICE_VENDOR);
	}
Example #6
0
	std::string Device::profile() const {
		return getInfoString(CL_DEVICE_PROFILE);
	}
Example #7
0
	std::string Device::versionOpenCLC() const {
		return getInfoString(CL_DEVICE_OPENCL_C_VERSION);
	}
Example #8
0
	std::string Device::name() const {
		return getInfoString(CL_DEVICE_NAME);
	}
Example #9
0
	std::vector<std::string> Device::getExtensions() const {
		return common::split(getInfoString(CL_DEVICE_EXTENSIONS), " ");
	}