You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/11/16 02:39:26 UTC
[29/30] mesos git commit: Virtualize backup(length) and remaining()
in Encoder interface.
Virtualize backup(length) and remaining() in Encoder interface.
These are top level concepts implemented by both data and file encoders.
Review: https://reviews.apache.org/r/27963
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3564c446
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3564c446
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3564c446
Branch: refs/heads/master
Commit: 3564c44642cda195c60e8f4914c59b49dbdff576
Parents: 4a79a69
Author: Joris Van Remoortere <jo...@gmail.com>
Authored: Sat Nov 15 16:48:15 2014 -0800
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Sat Nov 15 17:38:22 2014 -0800
----------------------------------------------------------------------
3rdparty/libprocess/src/encoder.hpp | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/3564c446/3rdparty/libprocess/src/encoder.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/encoder.hpp b/3rdparty/libprocess/src/encoder.hpp
index 8040d23..7afde0e 100644
--- a/3rdparty/libprocess/src/encoder.hpp
+++ b/3rdparty/libprocess/src/encoder.hpp
@@ -49,6 +49,10 @@ public:
virtual Kind kind() const = 0;
+ virtual void backup(size_t length) = 0;
+
+ virtual size_t remaining() const = 0;
+
Socket socket() const
{
return s;