mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 08:07:09 -06:00
17 lines
292 B
C++
Executable File
17 lines
292 B
C++
Executable File
// 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
|