|
Interface for writing data to an asset. More...
#include <writableAsset.h>
Public Member Functions | |
ArWritableAsset (const ArWritableAsset &)=delete | |
ArWritableAsset & | operator= (const ArWritableAsset &)=delete |
virtual bool | Close ()=0 |
Close this asset, performing any necessary finalization or commits of data that was previously written. | |
virtual size_t | Write (const void *buffer, size_t count, size_t offset)=0 |
Writes count bytes from buffer at offset from the beginning of the asset. | |
Interface for writing data to an asset.
Definition at line 26 of file writableAsset.h.
|
pure virtual |
Close this asset, performing any necessary finalization or commits of data that was previously written.
Returns true on success, false otherwise.
If successful, reads to the written asset in the same process should reflect the fully written state by the time this function returns. Also, further calls to any functions on this interface are invalid.
Implemented in ArFilesystemWritableAsset.
|
pure virtual |
Writes count
bytes from buffer
at offset
from the beginning of the asset.
Returns number of bytes written, or 0 on error.
Implemented in ArFilesystemWritableAsset.