OpenClonk
C4AulUserFile Class Reference

#include <C4Aul.h>

Public Member Functions

 C4AulUserFile (int32_t handle)
 
void Write (const char *data, size_t data_length)
 
const char * GetFileContents ()
 
StdStrBuf GrabFileContents ()
 
size_t GetFileLength ()
 
int32_t GetHandle () const
 

Detailed Description

Definition at line 89 of file C4Aul.h.

Constructor & Destructor Documentation

◆ C4AulUserFile()

C4AulUserFile::C4AulUserFile ( int32_t  handle)
inline

Definition at line 95 of file C4Aul.h.

95 : handle(handle) {}

Member Function Documentation

◆ GetFileContents()

const char* C4AulUserFile::GetFileContents ( )
inline

Definition at line 98 of file C4Aul.h.

98 { return sContents.getData(); }
const char * getData() const
Definition: StdBuf.h:442

References StdStrBuf::getData().

Here is the call graph for this function:

◆ GetFileLength()

size_t C4AulUserFile::GetFileLength ( )
inline

Definition at line 100 of file C4Aul.h.

100 { return sContents.getLength(); }
size_t getLength() const
Definition: StdBuf.h:445

References StdStrBuf::getLength().

Referenced by C4EditCursor::PerformDuplication(), and C4Game::SaveData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHandle()

int32_t C4AulUserFile::GetHandle ( ) const
inline

Definition at line 101 of file C4Aul.h.

101 { return handle; }

◆ GrabFileContents()

StdStrBuf C4AulUserFile::GrabFileContents ( )
inline

Definition at line 99 of file C4Aul.h.

99 { StdStrBuf r; r.Take(sContents); return r; }
void Take(char *pnData)
Definition: StdBuf.h:457

References StdStrBuf::Take().

Referenced by C4EditCursor::PerformDuplication(), and C4Game::SaveData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Write()

void C4AulUserFile::Write ( const char *  data,
size_t  data_length 
)
inline

Definition at line 96 of file C4Aul.h.

96 { sContents.Append(data, data_length); }
void Append(const char *pnData, size_t iChars)
Definition: StdBuf.h:519

References StdStrBuf::Append().

Here is the call graph for this function:

The documentation for this class was generated from the following file: