Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
ManiaPlanet internals
(view source)
Revision as of 19:19, 26 June 2017
826 bytes added
,
19:19, 26 June 2017
→CClassicBufferMemory
:
Moved all virtual functions from CClassicBuffer to this class; Added all non virtual functions.
Line 783:
Line 783:
class CClassicBufferMemory : public CClassicBuffer
class CClassicBufferMemory : public CClassicBuffer
{
{
+
public:
+
CClassicBufferMemory();
+
virtual ~CClassicBufferMemory();
+
virtual int Read(void* pTargetBuffer, int length);
+
virtual int Write(void* pData, int length);
+
virtual void Close();
+
virtual void m10()
+
virtual int GetCurOffset();
+
virtual int GetActualSize();
+
virtual bool IsSeekable();
+
virtual void SetCurOffset(int position);
+
virtual void m24();
+
virtual void AdvanceOffset(int offset); // SetCurOffset(GetCurOffset() + offset);
+
virtual int GetAllocatedSize();
+
+
void PreAlloc(int);
+
void Attach(void*, int);
+
void CopyAndDetachBufferMemory(CClassicBufferMemory&);
+
void Reset();
+
void Empty();
+
void EmptyAndFreeMemory();
+
int IsEqualBuffer(CClassicBufferMemory&);
+
int WriteVoid(int);
+
int WriteCopy(CClassicBuffer*, int);
+
private:
private:
void* pData;
void* pData;
Line 788:
Line 813:
int position;
int position;
int capacity;
int capacity;
−
int capacityIncrement;
// Step size by which to increase capacity when the buffer gets full
+
int capacityIncrement; // Step size by which to increase capacity when the buffer gets full
};
};
Electron
Check users
139
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version