0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Status.cc
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2014 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
27 
28 #include <Common/Compat.h>
29 
30 #include "Status.h"
31 
32 using namespace Hypertable;
33 using namespace Hypertable::Lib::RangeServer;
34 
36  return 1;
37 }
38 
40  return m_status.encoded_length();
41 }
42 
56  m_status.encode(bufp);
57 }
58 
60  const uint8_t **bufp,
61  size_t *remainp) {
62  m_status.decode(bufp, remainp);
63 }
size_t encoded_length_internal() const override
Returns internal serialized length.
Definition: Status.cc:39
uint8_t encoding_version() const override
Returns encoding version.
Definition: Status.cc:35
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
Definition: Status.cc:55
Compatibility Macros for C/C++.
Hypertable definitions
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
Definition: Status.cc:59
Declarations for Status response parameters.