mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 10:07:13 -06:00
19 lines
311 B
C++
Executable File
19 lines
311 B
C++
Executable File
// Common/AlignedBuffer.h
|
|
|
|
#ifndef __COMMON_ALIGNEDBUFFER_H
|
|
#define __COMMON_ALIGNEDBUFFER_H
|
|
|
|
#include <stddef.h>
|
|
|
|
class CAlignedBuffer
|
|
{
|
|
unsigned char *m_Buffer;
|
|
public:
|
|
CAlignedBuffer(): m_Buffer(0) {};
|
|
~CAlignedBuffer() { Free(); }
|
|
void *Allocate(size_t size, size_t mask);
|
|
void Free();
|
|
};
|
|
|
|
#endif
|