Function SetOperationResult

Synopsis

#include <include/bufferextractcallback.hpp>

STDMETHOD() SetOperationResult(Int32 resultEOperationResult)

Description

No description yet.

Source

Lines 76-106 in src/bufferextractcallback.cpp. Line 42 in include/bufferextractcallback.hpp.

STDMETHODIMP BufferExtractCallback::SetOperationResult( Int32 operationResult ) {
    switch ( operationResult ) {
        case NArchive::NExtract::NOperationResult::kOK:
            break;

        default: {
            mNumErrors++;

            switch ( operationResult ) {
                case NArchive::NExtract::NOperationResult::kUnsupportedMethod:
                    mErrorMessage = kUnsupportedMethod;
                    break;

                case NArchive::NExtract::NOperationResult::kCRCError:
                    mErrorMessage = kCRCFailed;
                    break;

                case NArchive::NExtract::NOperationResult::kDataError:
                    mErrorMessage = kDataError;
                    break;

                default:
                    mErrorMessage = kUnknownError;
            }
        }
    }

    mOutMemStream.Release();

    return mNumErrors > 0 ? E_FAIL : S_OK;
}





Add Discussion as Guest

Log in