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 <[email protected]> Authored: Sat Nov 15 16:48:15 2014 -0800 Committer: Benjamin Hindman <[email protected]> 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;
