changed loadBuffer to use byte* rather than char*

svn-id: r32894
This commit is contained in:
Stephen Kennedy 2008-07-03 16:09:54 +00:00
parent 48fd843e75
commit 52aba6b6da

View File

@ -144,12 +144,13 @@ public:
* from memory if no themes can be found.
*
* @param buffer Pointer to the buffer.
* @param size Size of the buffer
* @param disposable Sets if the XMLParser owns the buffer,
* i.e. if it can be freed safely after it's
* no longer needed by the parser.
*/
virtual bool loadBuffer(const char *buffer, bool disposable = false) {
_text.loadStream(new MemoryReadStream((const byte*)buffer, strlen(buffer), disposable));
virtual bool loadBuffer(const byte *buffer, uint32 size, bool disposable = false) {
_text.loadStream(new MemoryReadStream(buffer, size, disposable));
_fileName = "Memory Stream";
return true;
}