Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Common/AlignedBuffer.cpp')
-rwxr-xr-xCPP/Common/AlignedBuffer.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/CPP/Common/AlignedBuffer.cpp b/CPP/Common/AlignedBuffer.cpp
deleted file mode 100755
index ec472ced..00000000
--- a/CPP/Common/AlignedBuffer.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// AlignedBuffer.cpp
-
-#include "StdAfx.h"
-
-#include "AlignedBuffer.h"
-
-void *CAlignedBuffer::Allocate(size_t size, size_t mask)
-{
- Free();
- m_Buffer = new unsigned char[size + mask];
- unsigned char *p = m_Buffer;
- while(((size_t)p & mask) != 0)
- p++;
- return (void *)p;
-}
-
-void CAlignedBuffer::Free()
-{
- if (m_Buffer != 0)
- delete []m_Buffer;
- m_Buffer = 0;
-}