From 57e4eca53285d77b526f94f155235c90b12872d4 Mon Sep 17 00:00:00 2001
From: "jdhiser@gmail.com" <jdhiser@gmail.com>
Date: Fri, 24 Sep 2021 03:23:49 +0000
Subject: [PATCH] Added improvement for swapping just a few bytes in a scoop, a
 common operation

---
 include/inc-core/scoop.hpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/inc-core/scoop.hpp b/include/inc-core/scoop.hpp
index f6d4e5b..a8a4cb4 100644
--- a/include/inc-core/scoop.hpp
+++ b/include/inc-core/scoop.hpp
@@ -55,5 +55,11 @@ namespace IRDB_SDK
 			virtual void clearRelRo()                 = 0;
 			virtual void setRawPerms(int newperms)    = 0;
 
+			//
+			// replace the bytes in the scoop at position pos with the new bytes.
+			// length of newBytes indicates how many bytes to replace.
+			//
+			virtual void replaceBytes(size_t pos, const string& newBytes) = 0;
+
 	};
 }
-- 
GitLab