这篇教程C++ upload函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中upload函数的典型用法代码示例。如果您正苦于以下问题:C++ upload函数的具体用法?C++ upload怎么用?C++ upload使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了upload函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: upload void GLPixelBuffer::unlockImpl(void) { if (mCurrentLockOptions != GBL_READ_ONLY) { // From buffer to card, only upload if was locked for writing upload(mCurrentLock, mLockedBox); } freeBuffer(); }
开发者ID:AlfHub,项目名称:BansheeEngine,代码行数:10,
示例2: upload /** Uploads a filename, and if necessary, uploads the data as well. * * @param name The named file to be uploaded (of the form "meerkat:///somefile.texture") * @param hashContext The location to upload the data to (usually "mhash:") * @param toUpload Data to be uploaded. Will only be uploaded if necessary. * @param listener An EventListener to receive a UploadEventPtr with the retrieved data. * @param forceIfExists Upload the data even if the file already exists on all known CDN services. */ inline void upload(const URI &name, const URIContext &hashContext, const DenseDataPtr &toUpload, const EventListener &listener, bool forceIfExists) { RemoteFileId rfid( Fingerprint::computeDigest(toUpload->data(), toUpload->length()), hashContext); upload(name, rfid, toUpload, listener, forceIfExists); }
开发者ID:danx0r,项目名称:sirikata,代码行数:18,
示例3: putstatic int put(void){ res = ne_concat(i_path, "lockme", NULL); res2 = ne_concat(i_path, "notlocked", NULL); //res3 = ne_concat(i_path,"not-existing",NULL); CALL(upload_foo("lockme")); CALL(upload("notlocked", "./htdocs/bar")); return OK;}
开发者ID:tolsen,项目名称:limeberry,代码行数:11,
示例4: assertIndexBufferImpl::IndexBufferImpl(uint length, uint fmt, const void* data, LPDIRECT3DDEVICE9 device) { D3DFORMAT table[] = {D3DFMT_INDEX16, D3DFMT_INDEX32}; assert(("Unknown format", fmt <= 1)); if (FAILED(device->CreateIndexBuffer(length, 0, table[fmt], D3DPOOL_DEFAULT, &ib, 0))) throw Exception("Failed to allocate VertexBuffer"); if (data != nullptr) upload(data, 0, length);}
开发者ID:TheStolenBattenberg,项目名称:MAEngine,代码行数:11,
示例5: fivoid Uploader::onUploadButton(){ QFileInfo fi(browseEdit->text()); if(!fi.exists()) return mainWindow->message( tr("%1 can't be found.").arg(fi.fileName()), MsgType::Error, tr("Uploader") ); if( uploader.state() != QProcess::NotRunning ) return mainWindow->message( tr("Uploader is currently busy...give it a second, then try again"), MsgType::Error, tr("Uploader") ); upload(fi.filePath());}
开发者ID:sanjog47,项目名称:makecontroller,代码行数:11,
示例6: upload void GL3PlusHardwarePixelBuffer::unlockImpl(void) { if (mCurrentLockOptions != HardwareBuffer::HBL_READ_ONLY) { // From buffer to card, only upload if was locked for writing. upload(mCurrentLock, mLockedBox); } freeBuffer(); mBuffer = PixelBox( mWidth, mHeight, mDepth, mFormat, mBuffer.data ); }
开发者ID:devxkh,项目名称:FrankE,代码行数:11,
示例7: uploadvoid Quad::draw() const { // upload to GPU if neccessary if (!verts_) { upload(); } rectangle_->Bind(); ogl::Context::DrawArrays(oglplus::PrimitiveType::TriangleStrip, 0, 4); oglplus::NoVertexArray().Bind();}
开发者ID:Simmesimme,项目名称:swift2d,代码行数:11,
示例8: connectMainWindow::MainWindow() { int row = 0; qRegisterMetaType<Buttons>("Buttons"); connect(&worker, SIGNAL(status(QString)), this, SLOT(status(QString))); connect(&worker, SIGNAL(progress(int)), this, SLOT(progress(int))); connect(&worker, SIGNAL(buttons(Buttons)), this, SLOT(buttons(Buttons))); refreshButton.setText("Refresh"); grid.addWidget(&refreshButton, row++, 0); fileListBox.setSizeConstraint(QLayout::SetFixedSize); fileListWidget.setLayout(&fileListBox); fileListArea.setWidgetResizable(true); fileListArea.setWidget(&fileListWidget); fileListAreaBox.setContentsMargins(1, 0, 1, 3); fileListAreaBox.addWidget(&fileListArea); fileListAreaWidget.setFixedHeight(192); fileListAreaWidget.setLayout(&fileListAreaBox); grid.addWidget(&fileListAreaWidget, row++, 0); progressBar.setMinimum(0); progressBar.setMaximum(10000); progressBarBox.setContentsMargins(1, 0, 0, 0); progressBarBox.addWidget(&progressBar, 0); progressBarWidget.setLayout(&progressBarBox); grid.addWidget(&progressBarWidget, row++, 0); uploadButton.setText("Upload"); grid.addWidget(&uploadButton, row++, 0); verifyButton.setText("Verify"); grid.addWidget(&verifyButton, row++, 0); widget.setParent(this); widget.setLayout(&grid); setCentralWidget(&widget); setWindowTitle("WAV uploader"); statusBar()->setSizeGripEnabled(false); setFixedSize(384, minimumSizeHint().height()); setWindowFlags(Qt::MSWindowsFixedSizeDialogHint); connect(&refreshButton, SIGNAL(clicked()), this, SLOT(refresh())); connect(&uploadButton, SIGNAL(clicked()), this, SLOT(upload())); connect(&verifyButton, SIGNAL(clicked()), this, SLOT(verify())); buttons(Buttons::Step1); progress(); status(); refresh(); show();}
开发者ID:jeremejevs,项目名称:wav-spi,代码行数:53,
示例9: m_d3dDeveIndexBufferDx9::eIndexBufferDx9(IDirect3DDevice9 *d3dDev, eU32 count, eBool dynamic) : m_d3dDev(d3dDev), m_count(count), m_locked(eFALSE), m_dynamic(dynamic), m_d3dIb(eNULL){ eASSERT(d3dDev != eNULL); eASSERT(count > 0); upload();}
开发者ID:DX94,项目名称:Enigma-Studio-3,代码行数:12,
示例10: glGenVertexArrays // custom drawing void VAO::begin(GLuint vertexSize, GLsizei vertices, const GLvoid* data, GLenum usage) { this->isCreating = true; // create VAO & VBO if (vao == 0) { glGenVertexArrays(1, &vao); glGenBuffers(1, &vbo); } upload(vertexSize, vertices, data, usage); }
开发者ID:fwsGonzo,项目名称:library,代码行数:13,
示例11: returnbool qt_dempak::init(QString file) { int inlen = 0; int stage = 0; char inbuf[16384],outbuf[16384]; z_stream stream; FILE *fp; if (!(fp = fopen(file.toAscii(),"rb"))) { errorString=QString("Error opening file %1").arg(file); return(false); } // read and check header fseek(fp, 0, SEEK_SET); fread (inbuf,1,4,fp); inbuf[4]='/0'; if ( strcmp("MPAK",inbuf) ) { errorString=QString("%1 not valid MPAK file").arg(file); return(false); } // zstream start fseek(fp, 21, SEEK_SET); memset(&stream,0,sizeof(z_stream)); inflateInit(&stream); while (!feof(fp) || inlen > 0) { int rc=0; inlen += fread(inbuf + inlen, 1, sizeof(inbuf) - inlen, fp); stream.next_in = (unsigned char *)inbuf; stream.avail_in = inlen; stream.next_out = (unsigned char *)outbuf; stream.avail_out = sizeof(outbuf); rc = inflate(&stream, 0); if (rc != Z_STREAM_END && rc != Z_OK) { errorString=QString("inflate returned %d").arg(rc); return(false); } if ((char*)stream.next_out > outbuf) upload(stage, outbuf, (char*)stream.next_out - outbuf); if ((char*)stream.next_in > inbuf) { memmove(inbuf, stream.next_in, stream.avail_in); inlen = stream.avail_in; } if (rc == Z_STREAM_END) { ++stage; inflateEnd(&stream); inflateInit(&stream); } } inflateEnd(&stream); fclose(fp); return(true);}
开发者ID:mharj,项目名称:daoctocrysis,代码行数:53,
示例12: assert void GLPixelBuffer::unlock() { assert(mIsLocked && "Cannot unlock this buffer, it is not locked!"); if (mCurrentLockOptions != GBL_READ_ONLY) { // From buffer to card, only upload if was locked for writing upload(mCurrentLock, mLockedBox); } freeBuffer(); mIsLocked = false; }
开发者ID:lysannschlegel,项目名称:bsf,代码行数:13,
示例13: mainint main(int c, char **argv) { CURL *curlhandle = NULL; curl_global_init(CURL_GLOBAL_ALL); curlhandle = curl_easy_init(); upload(curlhandle, "ftp://user:[email C++ upmconfig函数代码示例 C++ updwtmpx函数代码示例
|