summaryrefslogtreecommitdiff
path: root/src/KM_fileio.h
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2008-10-06 04:50:09 +0000
committerjhurst <>2008-10-06 04:50:09 +0000
commitdfed1be13fa82afc6de9f62822e963dec0f4a25a (patch)
tree351cf9c4eafadc0c502349fae6b509db838c7142 /src/KM_fileio.h
parent34b0ba8aa56c902a013f7ac799e1f64fb31b0a5c (diff)
easy marshalling for IArchive
Diffstat (limited to 'src/KM_fileio.h')
-rwxr-xr-xsrc/KM_fileio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/KM_fileio.h b/src/KM_fileio.h
index 1376716..ceeb8eb 100755
--- a/src/KM_fileio.h
+++ b/src/KM_fileio.h
@@ -206,6 +206,14 @@ namespace Kumu
// Writes a string to a file, overwrites the existing file if present.
Result_t WriteStringIntoFile(const char* filename, const std::string& inString);
+ // Instant IO for archivable objects
+ //
+ // Unarchives a file into an object
+ Result_t ReadFileIntoObject(const std::string& Filename, IArchive& Object, ui32_t max_size = 8 * Kumu::Megabyte);
+
+ // Archives an object into a file
+ Result_t WriteObjectIntoFile(const IArchive& Object, const std::string& Filename);
+
//
class FileReader
{