Class BufferUpdateCallback

Synopsis

#include <include/bufferupdatecallback.hpp>

class BufferUpdateCallback : public UpdateCallback

Description

No description yet.

Inheritance

Ancestors: UpdateCallback

Methods

BufferUpdateCallbackMost of this code is taken from the CUpdateCallback class in Client7z.cpp of the 7z SDK Main changes made:
~BufferUpdateCallback
GetPropertyIArchiveUpdateCallback2.
GetStream
GetVolumeSizeIArchiveUpdateCallback2 specific methods are unnecessary, but we need a common interface (CompressCallback) for both this class and UpdateCallback!
GetVolumeStream
itemsCount

Source

Lines 33-52 in include/bufferupdatecallback.hpp.

class BufferUpdateCallback : public UpdateCallback {
    public:
        BufferUpdateCallback( const BitArchiveCreator& creator,
                              const vector< byte_t >& in_buffer,
                              const wstring& in_buffer_name );
        virtual ~BufferUpdateCallback() override;
        // IArchiveUpdateCallback2
        STDMETHOD( GetProperty )( UInt32 index, PROPID propID, PROPVARIANT* value );
        STDMETHOD( GetStream )( UInt32 index, ISequentialInStream** inStream );
        STDMETHOD( GetVolumeSize )( UInt32 index, UInt64* size );
        STDMETHOD( GetVolumeStream )( UInt32 index, ISequentialOutStream** volumeStream );
        uint32_t itemsCount() const override;
    private:
        const vector< byte_t >& mBuffer;
        const wstring& mBufferName;
};





Add Discussion as Guest

Log in