Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: runtime/bin/file.h

Issue 2715463003: Add option to gen_snapshot for creating a Makefile describing a snapshot's dependencies. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/file_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 53e439350ded63e3402af87435d03514720a4b26..8c859f70eaac332eb37eaece6f95079a2034c96c 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -122,6 +122,15 @@ class File : public ReferenceCounted<File> {
bool WriteFully(const void* buffer, int64_t num_bytes);
bool WriteByte(uint8_t byte) { return WriteFully(&byte, 1); }
+ bool Print(const char* format, ...) PRINTF_ATTRIBUTE(2, 3) {
+ va_list args;
+ va_start(args, format);
+ bool result = VPrint(format, args);
+ va_end(args);
+ return result;
+ }
+ bool VPrint(const char* format, va_list args);
+
// Get the length of the file. Returns a negative value if the length cannot
// be determined (e.g. not seekable device).
int64_t Length();
« no previous file with comments | « no previous file | runtime/bin/file_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698