Response parameters for length requests.
More...
#include <Length.h>
Response parameters for length requests.
Definition at line 46 of file Length.h.
Hypertable::FsBroker::Lib::Response::Parameters::Length::Length |
( |
| ) |
|
|
inline |
Constructor.
Empty initialization for decoding.
Definition at line 51 of file Length.h.
Hypertable::FsBroker::Lib::Response::Parameters::Length::Length |
( |
uint64_t |
length | ) |
|
|
inline |
Constructor.
Initializes with parameters for encoding. Sets m_length to length
.
- Parameters
-
Definition at line 57 of file Length.h.
void Length::decode_internal |
( |
uint8_t |
version, |
|
|
const uint8_t ** |
bufp, |
|
|
size_t * |
remainp |
|
) |
| |
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().
- Parameters
-
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized encoding remaining |
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 49 of file Length.cc.
void Length::encode_internal |
( |
uint8_t ** |
bufp | ) |
const |
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
This function is to be overridden by derived classes and should encode the object per-se.
- Parameters
-
bufp | Address of destination buffer pointer (advanced by call) |
Implements Hypertable::Serializable.
Definition at line 45 of file Length.cc.
size_t Length::encoded_length_internal |
( |
| ) |
const |
|
overrideprivatevirtual |
Returns internal serialized length.
This function is to be overridden by derived classes and should return the length of the the serialized object per-se.
- Returns
- Internal serialized length
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 41 of file Length.cc.
uint8_t Length::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
uint64_t Hypertable::FsBroker::Lib::Response::Parameters::Length::get_length |
( |
| ) |
|
|
inline |
Gets file length.
- Returns
- File length
Definition at line 61 of file Length.h.
uint64_t Hypertable::FsBroker::Lib::Response::Parameters::Length::m_length |
|
private |
File length.
Definition at line 75 of file Length.h.
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Response/Parameters/Length.h
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Response/Parameters/Length.cc