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

Unified Diff: runtime/vm/datastream.h

Issue 522893002: Change snapshot versioning code to use plain strings instead of Dart strings (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/datastream.h
===================================================================
--- runtime/vm/datastream.h (revision 39704)
+++ runtime/vm/datastream.h (working copy)
@@ -98,6 +98,11 @@
current_ = current_ + value;
}
+ intptr_t PendingBytes() const {
+ ASSERT(end_ >= current_);
+ return (end_ - current_);
+ }
+
private:
template<typename T>
T Read() {
« no previous file with comments | « no previous file | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698