Scaleform::FileConstants Scaleform::File Scaleform::DelegatedFile Scaleform::BufferedFile
class BufferedFile : public DelegatedFile;
BufferedFile is a File wrapper implementation that buffers all the I/O operations of the file it delegates to. Wrapping a file in BufferedFile will never cause I/O operations to fail; if there is not enough memory to allocate the buffer, no buffering is used. Buffering substantially improves performance of file operations when a lot of small objects are read in or written out.
BufferedFile AddRef is the File that it delegates to; this file pointer can only be specified on constructor.
Method |
Description |
Resizes the size of the file. | |
Appends other file data from a stream. | |
Overridden method, sets file position indicator in the file. | |
Read data from the buffered file. | |
Returns the number of bytes available to read from a stream. | |
Overridden method, sets file position indicator in the file. | |
Closes the file. | |
Ignores given number of bytes. | |
Writes data to the buffer. | |
Flushes the buffer. | |
Initializes BufferedFile. | |
Overridden method, obtains the length of the file. | |
Overridden method, returns the length of the file. | |
Overridden method, returns the current position in the file. | |
Overridden method, returns the current position in the file. |
SF_File.h