Beispiel #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 "";
			}
		}
	}
Beispiel #2
0
	String Request::getLocation() {
		return getInfoString(HTTP_QUERY_LOCATION);
	}
Beispiel #3
0
	std::string Device::version() const {
		return getInfoString(CL_DEVICE_VERSION);
	}
Beispiel #4
0
	std::string Device::driverVersion() const {
		return getInfoString(CL_DRIVER_VERSION);
	}
Beispiel #5
0
	std::string Device::vendor() const {
		return getInfoString(CL_DEVICE_VENDOR);
	}
Beispiel #6
0
	std::string Device::profile() const {
		return getInfoString(CL_DEVICE_PROFILE);
	}
Beispiel #7
0
	std::string Device::versionOpenCLC() const {
		return getInfoString(CL_DEVICE_OPENCL_C_VERSION);
	}
Beispiel #8
0
	std::string Device::name() const {
		return getInfoString(CL_DEVICE_NAME);
	}
Beispiel #9
0
	std::vector<std::string> Device::getExtensions() const {
		return common::split(getInfoString(CL_DEVICE_EXTENSIONS), " ");
	}