AU: SplitWriter class for parsing our full update files.
Full updates now include data for two partitions (kernel + rootfs).
This CL adds a new SplitFileWriter class which takes the stream of
data, which is expected to be in our full update format (8 bytes big
endian uint64_t of the first partition size, followed by first
partition data, followed by second partition size). It parses the
size, then writes the data to each of two FileWriter classes.
BUG=None
TEST=Attached unittest
Review URL: http://codereview.chromium.org/1800009
diff --git a/delta_performer.h b/delta_performer.h
index 1356bae..4a096c2 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -30,7 +30,7 @@
// Wrapper around write. Returns bytes written on success or
// -errno on error.
- int Write(const void* bytes, size_t count);
+ ssize_t Write(const void* bytes, size_t count);
// Wrapper around close. Returns 0 on success or -errno on error.
int Close();