summaryrefslogtreecommitdiff
path: root/lib/common/Guards.h
diff options
context:
space:
mode:
authorChris Wilson <qris@users.noreply.github.com>2018-03-12 22:06:29 +0000
committerGitHub <noreply@github.com>2018-03-12 22:06:29 +0000
commit82445a8e54abbcb37e41db532130dcb82088ac5d (patch)
tree28b9f1ac7afb1f062035ca4c6021325e4e0050c3 /lib/common/Guards.h
parent4a9c1e9f305ae4317cdd05d2641db2da86eef615 (diff)
parentf2223e6a6db1d8b282ab23a80fb34d7a89bb3a20 (diff)
Merge branch 'master' into fix_raidfile_i386
Diffstat (limited to 'lib/common/Guards.h')
-rw-r--r--lib/common/Guards.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/common/Guards.h b/lib/common/Guards.h
index 46b6d2bd..3637b261 100644
--- a/lib/common/Guards.h
+++ b/lib/common/Guards.h
@@ -110,6 +110,11 @@ public:
return (type)mpBlock;
}
+ int GetSize() const
+ {
+ return mBlockSize;
+ }
+
void Resize(int NewSize)
{
void *ptrn = ::realloc(mpBlock, NewSize);