mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 11:14:58 -06:00
21.02
This commit is contained in:
@@ -57,6 +57,15 @@ public:
|
||||
ISzAlloc_Free(&g_AlignedAlloc, _data);
|
||||
}
|
||||
|
||||
CAlignedBuffer(size_t size): _size(0)
|
||||
{
|
||||
_data = NULL;
|
||||
_data = (Byte *)ISzAlloc_Alloc(&g_AlignedAlloc, size);
|
||||
if (!_data)
|
||||
throw 1;
|
||||
_size = size;
|
||||
}
|
||||
|
||||
void Free()
|
||||
{
|
||||
ISzAlloc_Free(&g_AlignedAlloc, _data);
|
||||
|
||||
Reference in New Issue
Block a user