1 #ifndef _library__fileimage_patch__hpp__included__
2 #define _library__fileimage_patch__hpp__included__
12 std::vector
<char> patch(const std::vector
<char>& original
, const std::vector
<char>& patch
,
13 int32_t offset
) throw(std::bad_alloc
, std::runtime_error
);
23 patcher() throw(std::bad_alloc
);
27 virtual ~patcher() throw();
31 * Parameter patch: The patch.
32 * Returns: True if my format, false if not.
34 virtual bool identify(const std::vector
<char>& patch
) throw() = 0;
38 virtual void dopatch(std::vector
<char>& out
, const std::vector
<char>& original
,
39 const std::vector
<char>& patch
, int32_t offset
) throw(std::bad_alloc
, std::runtime_error
) = 0;