Exemplo n.º 1
0
 public BlobBufferedIns(GcsReqParmas reqParams)
 {
     this.blob              = GcsService.Instance().GetBlob(reqParams.Bucket, reqParams.Blob);
     this.blobSize          = (long)this.blob.Size;
     this.numOfBlobBtsLeft  = this.blobSize;
     this.fullBlobPath      = reqParams.BlobFullPath;
     this.dwLocalBufferSize = (int)Math.Min(Constants.BLOB_BUFFERED_INS_DOWNLOAD_SIZE * 2, this.blobSize);
 }
Exemplo n.º 2
0
 public BlobBufferedOus(GcsReqParmas reqParams)
 {
     this.blob          = GcsService.Instance().CreateEmptyBlob(reqParams.Bucket, reqParams.Blob);
     this.reqParmas     = reqParams;
     this.fullBlobPath  = reqParams.BlobFullPath;
     this.centralBuffer = new byte[centralBufferSize];
     this.localFileSize = (0 != reqParams.LocalFileSize) ? reqParams.LocalFileSize : 0;
     this.uploadUri     = GcsService.Instance().InitializeResumableUploader(reqParams.Bucket, reqParams.Blob);
 }