Lines Matching refs:_data
12 Byte *_data;
18 CMidBuffer(): _data(NULL), _size(0) {}
19 ~CMidBuffer() { ::MidFree(_data); }
21 void Free() { ::MidFree(_data); _data = NULL; _size = 0; }
23 bool IsAllocated() const { return _data != NULL; }
24 operator Byte *() { return _data; }
25 operator const Byte *() const { return _data; }
30 if (!_data || size != _size)
32 ::MidFree(_data);
34 _data = NULL;
35 _data = (Byte *)::MidAlloc(size);
36 if (_data)
43 if (!_data || size > _size)
45 ::MidFree(_data);
50 _data = NULL;
51 _data = (Byte *)::MidAlloc(size);
52 if (_data)
61 Byte *_data;
68 ISzAlloc_Free(&g_AlignedAlloc, _data);
73 _data = NULL;
74 _data = (Byte *)ISzAlloc_Alloc(&g_AlignedAlloc, size);
75 if (!_data)
79 operator Byte *() { return _data; }
80 operator const Byte *() const { return _data; }
86 Byte *_data;
92 CAlignedBuffer(): _data(NULL), _size(0) {}
95 ISzAlloc_Free(&g_AlignedAlloc, _data);
100 _data = NULL;
101 _data = (Byte *)ISzAlloc_Alloc(&g_AlignedAlloc, size);
102 if (!_data)
109 ISzAlloc_Free(&g_AlignedAlloc, _data);
110 _data = NULL;
114 bool IsAllocated() const { return _data != NULL; }
115 operator Byte *() { return _data; }
116 operator const Byte *() const { return _data; }
121 if (!_data || size != _size)
123 ISzAlloc_Free(&g_AlignedAlloc, _data);
125 _data = NULL;
126 _data = (Byte *)ISzAlloc_Alloc(&g_AlignedAlloc, size);
127 if (_data)
134 if (!_data || size > _size)
136 ISzAlloc_Free(&g_AlignedAlloc, _data);
138 _data = NULL;
139 _data = (Byte *)ISzAlloc_Alloc(&g_AlignedAlloc, size);
140 if (_data)