§ copy()
void FileData::copy |
( |
char * |
bytes, |
|
|
const size_t |
size |
|
) |
| |
Copies the buffer pointer and its size.
- Note
- This method will copy the whole buffer. Developer should free the pointer after invoking this method.
- See also
- Data::fastSet
§ isNull()
bool FileData::isNull |
( |
| ) |
const |
Check whether the data is null.
§ SetOwnBuffer()
void FileData::SetOwnBuffer |
( |
char * |
bytes, |
|
|
const size_t |
size |
|
) |
| |
take ownership of the buffer.
Please use it carefully.
- Parameters
-
bytes | The buffer pointer, note that it have to be allocated by new method, since in the destructor of Data, the buffer will be deleted by 'free'. |
- Note
- 1. This method will move the ownership of bytes' pointer to Data,
- The pointer should not be used outside after it was passed to this method.
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/IO/FileData.h
- Client/trunk/ParaEngineClient/IO/FileData.cpp