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 'Common/AlignedBuffer.h')
-rwxr-xr-xCommon/AlignedBuffer.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Common/AlignedBuffer.h b/Common/AlignedBuffer.h
new file mode 100755
index 00000000..1bff6591
--- /dev/null
+++ b/Common/AlignedBuffer.h
@@ -0,0 +1,16 @@
+// AlignedBuffer.h
+
+#ifndef __ALIGNBUFFER_H
+#define __ALIGNBUFFER_H
+
+class CAlignedBuffer
+{
+ unsigned char *m_Buffer;
+public:
+ CAlignedBuffer(): m_Buffer(0) {};
+ ~CAlignedBuffer() { Free(); }
+ void *Allocate(size_t numItems, size_t itemSize, size_t alignValue);
+ void Free();
+};
+
+#endif