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

AlignedBuffer.h « Common « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d040463e6427d5dffef1e16871d119ab90669c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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