BufferedFile::CopyFromStream

BufferedFile::CopyFromStream
virtual SF_EXPORT int CopyFromStream(File * pstream, int byteSize);
Description

CopyFromStream appends another file data from a stream. Returns number of bytes written and -1 for error in appending the file data.

Parameters
Parameters 
Description 
File * pstream 
Pointer to the stream from which file data is to be copied. 
int byteSize 
Size of file in bytes. 
Return Value

An int value containing the number of bytes written.