Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CustomMemFile.h
1// BitArray.h: interface for the CBitArray class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#ifndef CCUSTOMMEMFILE_CLASS_H
6#define CCUSTOMMEMFILE_CLASS_H
7
8#ifdef _MSC_VER
9#pragma once
10#endif // _MSC_VER
11
12BEGIN_MOOTOOLS_NAMESPACE
13
14class DLL_TOOLSFUNCTION CCustomMemFile : public CXMemFile
15{
16protected:
17 unsigned int flags;
18
19public:
20 typedef enum _Flags
21 {
22 MEMFILE_DEFAULT = 0x00,
23 MEMFILE_FASTGROW = 0x01, // The memfile grow linearly (buffer * 2) when growing
24 } Flags;
25
26 CCustomMemFile(unsigned int flags = MEMFILE_FASTGROW, unsigned int nGrowBytes = 1024);
27
28 // We change the nGrowBytes factor for CCustomMemFile and Attach because when nGrowBytes = 0, CXMemFile does not
29 // use direct buffer access. Beware that the buffer match Alloc allocation if you make writing using these methods.
30 CCustomMemFile(const unsigned char *lpBuffer, fileuint nBufferSize, bool deleteMemory, unsigned int flags = MEMFILE_DEFAULT);
31 virtual ~CCustomMemFile(void);
32
33protected:
34 virtual bool GrowBuffer(SIZET dwNewLen);
35};
36
37END_MOOTOOLS_NAMESPACE
38
39#endif // CCUSTOMMEMFILE_CLASS_H
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
Definition CustomMemFile.h:15
Definition XMemFile.h:20