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

Unified Diff: include/ots-memory-stream.h

Issue 6410047: OTS: Adds more layout common table supports.... (Closed) Base URL: http://ots.googlecode.com/svn/trunk/
Patch Set: '' Created 9 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 | src/gdef.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ots-memory-stream.h
===================================================================
--- include/ots-memory-stream.h (revision 50)
+++ include/ots-memory-stream.h (working copy)
@@ -18,7 +18,7 @@
: ptr_(ptr), length_(length), off_(0) {
}
- bool WriteRaw(const void *data, size_t length) {
+ virtual bool WriteRaw(const void *data, size_t length) {
if ((off_ + length > length_) ||
(length > std::numeric_limits<size_t>::max() - off_)) {
return false;
@@ -28,14 +28,14 @@
return true;
}
- bool Seek(off_t position) {
+ virtual bool Seek(off_t position) {
if (position < 0) return false;
if (static_cast<size_t>(position) > length_) return false;
off_ = position;
return true;
}
- off_t Tell() const {
+ virtual off_t Tell() const {
return off_;
}
« no previous file with comments | « no previous file | src/gdef.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698