struct Core::Portable::FileIOCompletionHandler

Overview

Completion handler for asynchronous file operations. More…

#include <corefile.h>

struct FileIOCompletionHandler
{
    // methods

    virtual void onSaveFileCompleted(CStringPtr filename);
    virtual void onLoadFileCompleted(IO::MemoryStream* data, CStringPtr filename);

    virtual void onLoadFileCompletedAsync(
        IO::MemoryStream* data,
        CStringPtr filename
    );

    virtual void onCancel();
};

// direct descendants

struct LoadCompletionHandler;

Detailed Documentation

Completion handler for asynchronous file operations.

Methods

virtual void onLoadFileCompleted(IO::MemoryStream* data, CStringPtr filename)

called from main thread

virtual void onLoadFileCompletedAsync(
    IO::MemoryStream* data,
    CStringPtr filename
)

called from background thread