Eric
Member
|
FileText::copy(...)
Hi,
when I wan't to copy file_text to pfd.file with recently added FileText::copy(...) function there's a problem. Resultant size of pfd.file is "1" where file_text is fine - I checked it with LogN(file_text.getAll());
Code:
/* XmlData "xml" is created and filled with some data */
// saving XmlData ("xml") into FileText ("file_text") memory
FileText file_text;
file_text.writeMem();
xml.save(file_text);
// creating PakFileData and filling it's "file" with "file_text" data
Memc<PakFileData> files;
PakFileData &pfd=files.New();
pfd.file.writeMem();
if(!file_text.copy(pfd.file)) Exit("no copy!");
LogN(S+"pfd.file size: "+pfd.file.size());
Regards,
Eric 'Eri' Przychocki
ourgames.eu
(This post was last modified: 03-02-2014 06:17 PM by Eric.)
|
|
03-02-2014 06:15 PM |
|
Esenthel
Administrator
|
RE: FileText::copy(...)
Sorry for the problem, there was a minor bug in FileText.copy, just fixed it, will work ok in next release.
|
|
03-02-2014 08:53 PM |
|