IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

FragmentComplete Event

Fires after each block in an automatic block-based upload is complete.

Syntax

ANSI (Cross Platform)
virtual int FireFragmentComplete(AzureBlobFragmentCompleteEventParams *e);
typedef struct {
int FragmentNumber;
int FragmentCount;
int Interrupt; int reserved; } AzureBlobFragmentCompleteEventParams; Unicode (Windows) virtual INT FireFragmentComplete(AzureBlobFragmentCompleteEventParams *e);
typedef struct {
INT FragmentNumber;
INT FragmentCount;
BOOL Interrupt; INT reserved; } AzureBlobFragmentCompleteEventParams;
- (void)onFragmentComplete:(int)fragmentNumber :(int)fragmentCount :(int*)interrupt;
#define EID_AZUREBLOB_FRAGMENTCOMPLETE 6

virtual INT IPWORKSCLOUD_CALL FireFragmentComplete(INT &iFragmentNumber, INT &iFragmentCount, BOOL &bInterrupt);

Remarks

When CreateBlob is used to create a new block blob, and more than SimpleUploadLimit bytes of upload data is provided, the class will automatically split the upload data up into blocks to perform the upload. During the overall upload process, this event will fire after each block is uploaded, providing an indication of overall upload progress.

FragmentNumber is the number of the current block that has completed. This value starts at 1.

FragmentCount is the total number of blocks that will be uploaded.

Interrupt can be set to true to interrupt the upload. The upload may be resumed later.

Refer to CreateBlob for more information.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]