About Store Forum Documentation Contact



Post Reply 
FileText::copy(...)
Author Message
Eric Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
Eric Offline
Member

Post: #3
RE: FileText::copy(...)
(03-02-2014 08:53 PM)Esenthel Wrote:  ..in next release.
when will the next release come out ? wink

Regards,
Eric 'Eri' Przychocki
ourgames.eu
03-06-2014 02:30 PM
Find all posts by this user Quote this message in a reply
Post Reply